@canboat/canboatjs 2.4.3 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/fromPgn.js CHANGED
@@ -243,6 +243,9 @@ class Parser extends EventEmitter {
243
243
  fields = pgnData.Fields
244
244
  //console.log(`using ${JSON.stringify(pgnData, null, 2)}`)
245
245
  value = pgnData.Fields[i].Description
246
+ if ( value == null ) {
247
+ value = pgnData.Fields[i].Match
248
+ }
246
249
  }
247
250
  }
248
251
 
package/lib/serial.js CHANGED
@@ -398,7 +398,9 @@ function processNTGMessage(that, buffer, len)
398
398
  if ( !that.outAvailable ) {
399
399
  if ( command === 0x11 ) {
400
400
  that.gotTXPGNList = false
401
- requestTransmitPGNList(that)
401
+ setTimeout(() => {
402
+ requestTransmitPGNList(that)
403
+ }, 2000)
402
404
  } else if ( command === 0x49 && buffer[3] === 1 ) {
403
405
  that.gotTXPGNList = true
404
406
  const pgnCount = buffer[14];
@@ -431,7 +433,7 @@ function processNTGMessage(that, buffer, len)
431
433
  if ( that.neededTransmitPGNs.length === 0 ) {
432
434
  const commitMsg = composeCommitTXPGN()
433
435
  debugOut(commitMsg)
434
- that.serial.write(msg)
436
+ that.serial.write(commitMsg)
435
437
  } else {
436
438
  enableTXPGN(that.serial, that.neededTransmitPGNs[0])
437
439
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canboat/canboatjs",
3
- "version": "2.4.3",
3
+ "version": "2.4.5",
4
4
  "description": "Native javascript version of canboat",
5
5
  "main": "index.js",
6
6
  "scripts": {