incyclist-devices 2.0.33 → 2.0.34

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.
@@ -259,7 +259,7 @@ class DaumAdapterBase extends adapter_1.SerialIncyclistDevice {
259
259
  }
260
260
  sendRequests() {
261
261
  return __awaiter(this, void 0, void 0, function* () {
262
- if (this.stopped)
262
+ if (this.stopped || this.paused)
263
263
  return;
264
264
  if (this.requests.length > 0) {
265
265
  const processing = [...this.requests];
@@ -370,6 +370,8 @@ class DaumAdapterBase extends adapter_1.SerialIncyclistDevice {
370
370
  });
371
371
  }
372
372
  refreshRequests() {
373
+ if (this.isPaused() || this.isStopped())
374
+ return;
373
375
  if (!this.cyclingData.isPedalling || this.cyclingData.pedalRpm === 0)
374
376
  return;
375
377
  let bikeRequest = this.getCyclingMode().sendBikeUpdate({ refresh: true }) || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.0.33",
3
+ "version": "2.0.34",
4
4
  "dependencies": {
5
5
  "@serialport/bindings-interface": "^1.2.2",
6
6
  "@serialport/parser-byte-length": "^9.0.1",