incyclist-devices 3.0.50 → 3.0.51

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.
@@ -283,6 +283,7 @@ class KettlerRacerAdapter extends adapter_js_1.SerialIncyclistDevice {
283
283
  return info.data;
284
284
  }
285
285
  catch (err) {
286
+ this.started = false;
286
287
  try {
287
288
  await this.reset();
288
289
  }
@@ -293,6 +294,7 @@ class KettlerRacerAdapter extends adapter_js_1.SerialIncyclistDevice {
293
294
  }
294
295
  }, 5, 1000)
295
296
  .then((data) => {
297
+ this.started = true;
296
298
  this.startUpdatePull();
297
299
  return true;
298
300
  });
@@ -318,6 +320,7 @@ class KettlerRacerAdapter extends adapter_js_1.SerialIncyclistDevice {
318
320
  }
319
321
  stop() {
320
322
  this.logEvent({ message: 'stop request' });
323
+ this.started = false;
321
324
  return new Promise(async (resolve, reject) => {
322
325
  try {
323
326
  if (this.iv) {
@@ -278,6 +278,7 @@ export default class KettlerRacerAdapter extends SerialIncyclistDevice {
278
278
  return info.data;
279
279
  }
280
280
  catch (err) {
281
+ this.started = false;
281
282
  try {
282
283
  await this.reset();
283
284
  }
@@ -288,6 +289,7 @@ export default class KettlerRacerAdapter extends SerialIncyclistDevice {
288
289
  }
289
290
  }, 5, 1000)
290
291
  .then((data) => {
292
+ this.started = true;
291
293
  this.startUpdatePull();
292
294
  return true;
293
295
  });
@@ -313,6 +315,7 @@ export default class KettlerRacerAdapter extends SerialIncyclistDevice {
313
315
  }
314
316
  stop() {
315
317
  this.logEvent({ message: 'stop request' });
318
+ this.started = false;
316
319
  return new Promise(async (resolve, reject) => {
317
320
  try {
318
321
  if (this.iv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "3.0.50",
3
+ "version": "3.0.51",
4
4
  "scripts": {
5
5
  "lint": "eslint . --ext .ts",
6
6
  "build": "npm run build:esm && npm run build:cjs",