incyclist-devices 1.5.8 → 1.5.9

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.
Files changed (2) hide show
  1. package/lib/antv2/fe.js +5 -3
  2. package/package.json +2 -2
package/lib/antv2/fe.js CHANGED
@@ -225,9 +225,11 @@ class AntFEAdapter extends ant_device_1.default {
225
225
  const userWeight = args.userWeight || user.weight || DEFAULT_USER_WEIGHT;
226
226
  const bikeWeight = args.bikeWeight || defaultBikeWeight;
227
227
  let i = 0;
228
- while (i < 3 && !status.userSent && !status.slopeSent) {
229
- status.userSent = status.userSent || (yield fe.sendUserConfiguration(userWeight, bikeWeight, args.wheelDiameter, args.gearRatio));
230
- status.slopeSent = status.slopeSent || (yield fe.sendTrackResistance(0.0));
228
+ while (i < 3 && (!status.userSent || !status.slopeSent)) {
229
+ if (!timeout || iv)
230
+ status.userSent = status.userSent || (yield fe.sendUserConfiguration(userWeight, bikeWeight, args.wheelDiameter, args.gearRatio));
231
+ if (!timeout || iv)
232
+ status.slopeSent = status.slopeSent || (yield fe.sendTrackResistance(0.0));
231
233
  i++;
232
234
  }
233
235
  stopInterval();
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "dependencies": {
5
5
  "@serialport/parser-byte-length": "^9.0.1",
6
6
  "@serialport/parser-delimiter": "^9.0.1",
7
7
  "@types/serialport": "^8.0.1",
8
8
  "gd-ant-plus": "^0.0.33",
9
- "incyclist-ant-plus": "^0.1.5",
9
+ "incyclist-ant-plus": "^0.1.6",
10
10
  "win32filetime": "^1.0.2"
11
11
  },
12
12
  "peerDependencies": {