@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 +3 -0
- package/lib/serial.js +4 -2
- package/package.json +1 -1
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
|
-
|
|
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(
|
|
436
|
+
that.serial.write(commitMsg)
|
|
435
437
|
} else {
|
|
436
438
|
enableTXPGN(that.serial, that.neededTransmitPGNs[0])
|
|
437
439
|
}
|