@zimo-elektronik/zcan 1.0.49 → 1.0.50
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.
|
@@ -181,7 +181,7 @@ export default class LanDataGroup {
|
|
|
181
181
|
}
|
|
182
182
|
const funMode = [];
|
|
183
183
|
for (let i = 0; i < 64; i++) {
|
|
184
|
-
const fun = buffer.readUInt16LE(
|
|
184
|
+
const fun = buffer.readUInt16LE(196 + 2 * i);
|
|
185
185
|
funMode.push(fun);
|
|
186
186
|
}
|
|
187
187
|
const msg = new MsgLocoGuiRsp(MsgLocoGuiRsp.header(mode, nid), NID, SubID, version, flags, group, name, imageId, imageCrc, tachoId, tachoCrc, speedFwd, speedRev, speedRank, driveType, era, countryCode, funImg, funMode);
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "https://github.com/ZIMO-Elektronik/zcan",
|
|
8
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.50",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node dist/main.js",
|
|
11
11
|
"start:dev": "nodemon --ext js,ts,json,env --exec \"node --experimental-specifier-resolution=node --loader ts-node/esm\" src/main.ts",
|
package/src/data/lanDataGroup.ts
CHANGED