tirecheck-device-sdk 0.2.48 → 0.2.49
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2308,7 +2308,7 @@ async function setAxleInfo(deviceId, tcVehicle) {
|
|
|
2308
2308
|
];
|
|
2309
2309
|
const axleTyres = tyresWithSensors.filter((tyre) => tyre.axlePosition === axleIndex + 1);
|
|
2310
2310
|
const spareTyre = spareTyres[axleIndex];
|
|
2311
|
-
if (!axleTyres.length && !spareTyre) continue;
|
|
2311
|
+
if (!axleTyres.length && !spareTyre && axleIndex >= tcVehicle.axles.length) continue;
|
|
2312
2312
|
for (const tyre of axleTyres) {
|
|
2313
2313
|
const bridgeIndex = getBridgeIndexFromPositionId(tyre.positionId, 7);
|
|
2314
2314
|
tyres[bridgeIndex] = tyre.tcTpmsSensor.id;
|
package/dist/index.mjs
CHANGED
|
@@ -2301,7 +2301,7 @@ async function setAxleInfo(deviceId, tcVehicle) {
|
|
|
2301
2301
|
];
|
|
2302
2302
|
const axleTyres = tyresWithSensors.filter((tyre) => tyre.axlePosition === axleIndex + 1);
|
|
2303
2303
|
const spareTyre = spareTyres[axleIndex];
|
|
2304
|
-
if (!axleTyres.length && !spareTyre) continue;
|
|
2304
|
+
if (!axleTyres.length && !spareTyre && axleIndex >= tcVehicle.axles.length) continue;
|
|
2305
2305
|
for (const tyre of axleTyres) {
|
|
2306
2306
|
const bridgeIndex = getBridgeIndexFromPositionId(tyre.positionId, 7);
|
|
2307
2307
|
tyres[bridgeIndex] = tyre.tcTpmsSensor.id;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tirecheck-device-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.49",
|
|
4
4
|
"description": "SDK for working with various devices produced by Tirecheck via Bluetooth (CAN Bridge, Routers, Sensors, FlexiGauge, PressureStick, etc)",
|
|
5
5
|
"author": "Leonid Buneev <leonid.buneev@tirecheck.com>",
|
|
6
6
|
"license": "ISC",
|