incyclist-devices 2.0.14 → 2.0.15

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.
@@ -177,6 +177,7 @@ class DaumPremiumAdapter extends DaumAdapter_1.default {
177
177
  }
178
178
  launch(props = {}, isRelaunch = false) {
179
179
  return __awaiter(this, void 0, void 0, function* () {
180
+ const isPaused = this.isPaused() !== false;
180
181
  this.setBikeProps(props);
181
182
  const user = this.user;
182
183
  const { route, onStatusUpdate, gear } = props;
@@ -224,6 +225,8 @@ class DaumPremiumAdapter extends DaumAdapter_1.default {
224
225
  .then(() => {
225
226
  this.stopped = false;
226
227
  this.paused = false;
228
+ if (isPaused)
229
+ this.resume();
227
230
  this.startUpdatePull();
228
231
  return true;
229
232
  });
@@ -74,8 +74,9 @@ class Daum8i {
74
74
  this.isLoggingPaused = false;
75
75
  }
76
76
  logEvent(e) {
77
- if (!this.isLoggingPaused)
78
- this.logger.logEvent(e);
77
+ if (this.isLoggingPaused)
78
+ return;
79
+ this.logger.logEvent(e);
79
80
  const w = global.window;
80
81
  if (w === null || w === void 0 ? void 0 : w.DEVICE_DEBUG) {
81
82
  console.log('~~~ DaumPremium', e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "dependencies": {
5
5
  "@serialport/bindings-interface": "^1.2.2",
6
6
  "@serialport/parser-byte-length": "^9.0.1",