@canboat/canboatjs 2.5.7 → 2.6.0
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/canbus.js
CHANGED
|
@@ -168,7 +168,8 @@ CanbusStream.prototype.connect = function() {
|
|
|
168
168
|
this.lastDataReceived = Date.now()
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
//always send address claims through
|
|
172
|
+
if ( pgn.pgn != 60928 && that.candevice && that.candevice.cansend && pgn.src == that.candevice.address ) {
|
|
172
173
|
return
|
|
173
174
|
}
|
|
174
175
|
|
package/lib/candevice.js
CHANGED
|
@@ -62,7 +62,7 @@ class CanDevice extends EventEmitter {
|
|
|
62
62
|
"Model ID": "Signal K",
|
|
63
63
|
"Software Version Code": "1.0",
|
|
64
64
|
"Model Version": "canbusjs",
|
|
65
|
-
"Model Serial Code": "
|
|
65
|
+
"Model Serial Code": options.uniqueNumber ? options.uniqueNumber.toString() : "000001",
|
|
66
66
|
"Certification Level": 0,
|
|
67
67
|
"Load Equivalency": 1
|
|
68
68
|
}
|
|
@@ -143,10 +143,7 @@ function handleISORequest(device, n2kMsg) {
|
|
|
143
143
|
sendProductInformation(device)
|
|
144
144
|
break;
|
|
145
145
|
case 60928: // ISO address claim request
|
|
146
|
-
|
|
147
|
-
let ac = JSON.parse(JSON.stringify(device.addressClaim))
|
|
148
|
-
ac.dst = n2kMsg.src
|
|
149
|
-
sendPGN(device, ac)
|
|
146
|
+
sendPGN(device, device.addressClaim)
|
|
150
147
|
break;
|
|
151
148
|
case 126464:
|
|
152
149
|
sendPGNList(device)
|