incyclist-devices 1.4.16 → 1.4.17

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.
@@ -430,16 +430,16 @@ class KettlerRacerAdapter extends Device_1.default {
430
430
  this.updateBusy = true;
431
431
  this.getStatus()
432
432
  .then((bikeData) => {
433
- if (!bikeData)
434
- return;
435
- try {
436
- this.kettlerData = bikeData;
437
- let data = this.mapData(bikeData);
438
- data = this.getCyclingMode().updateData(data);
439
- this.data = this.transformData(data, bikeData);
440
- }
441
- catch (err) {
442
- this.logger.logEvent({ message: 'bike update error', error: err.message });
433
+ if (bikeData) {
434
+ try {
435
+ this.kettlerData = bikeData;
436
+ let data = this.mapData(bikeData);
437
+ data = this.getCyclingMode().updateData(data);
438
+ this.data = this.transformData(data, bikeData);
439
+ }
440
+ catch (err) {
441
+ this.logger.logEvent({ message: 'bike update error', error: err.message });
442
+ }
443
443
  }
444
444
  this.updateBusy = false;
445
445
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "dependencies": {
5
5
  "@serialport/parser-byte-length": "^9.0.1",
6
6
  "@serialport/parser-delimiter": "^9.0.1",