incyclist-devices 1.5.13 → 1.5.14

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/ble/pwr.js CHANGED
@@ -121,6 +121,7 @@ class BleCyclingPowerDevice extends ble_device_1.BleDevice {
121
121
  offset += 2;
122
122
  }
123
123
  if (flags & 0x10) {
124
+ offset += 6;
124
125
  }
125
126
  if (flags & 0x20) {
126
127
  const crankData = {
package/lib/ble/tacx.js CHANGED
@@ -229,9 +229,11 @@ class TacxAdvancedFitnessMachineDevice extends fm_1.default {
229
229
  if (flags & 0x1)
230
230
  data.readUInt8(offset++);
231
231
  if (flags & 0x4) {
232
- data.readUInt16LE(offset);
233
232
  offset += 2;
234
233
  }
234
+ if (flags & 0x10) {
235
+ offset += 6;
236
+ }
235
237
  if (flags & 0x20) {
236
238
  const crankData = {
237
239
  revolutions: data.readUInt16LE(offset),
@@ -150,9 +150,11 @@ class WahooAdvancedFitnessMachineDevice extends fm_1.default {
150
150
  if (flags & 0x1)
151
151
  data.readUInt8(offset++);
152
152
  if (flags & 0x4) {
153
- data.readUInt16LE(offset);
154
153
  offset += 2;
155
154
  }
155
+ if (flags & 0x10) {
156
+ offset += 6;
157
+ }
156
158
  if (flags & 0x20) {
157
159
  const crankData = {
158
160
  revolutions: data.readUInt16LE(offset),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "1.5.13",
3
+ "version": "1.5.14",
4
4
  "dependencies": {
5
5
  "@serialport/parser-byte-length": "^9.0.1",
6
6
  "@serialport/parser-delimiter": "^9.0.1",