incyclist-devices 2.1.9 → 2.1.10
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.
|
@@ -27,7 +27,7 @@ export default class DaumAdapter<S extends SerialDeviceSettings, P extends Devic
|
|
|
27
27
|
isStopped(): boolean;
|
|
28
28
|
initData(): void;
|
|
29
29
|
pause(): Promise<boolean>;
|
|
30
|
-
resume(): Promise<boolean>;
|
|
30
|
+
resume(startUpdatePull?: boolean): Promise<boolean>;
|
|
31
31
|
waitForPrevCheckFinished(): Promise<void>;
|
|
32
32
|
check(): Promise<boolean>;
|
|
33
33
|
performCheck(): Promise<boolean>;
|
|
@@ -114,12 +114,13 @@ class DaumAdapter extends adapter_1.SerialIncyclistDevice {
|
|
|
114
114
|
});
|
|
115
115
|
var _a;
|
|
116
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
yield this.stopUpdatePull();
|
|
117
118
|
const paused = yield _super.pause.call(this);
|
|
118
119
|
(_a = this.comms) === null || _a === void 0 ? void 0 : _a.pauseLogging();
|
|
119
120
|
return paused;
|
|
120
121
|
});
|
|
121
122
|
}
|
|
122
|
-
resume() {
|
|
123
|
+
resume(startUpdatePull = true) {
|
|
123
124
|
const _super = Object.create(null, {
|
|
124
125
|
resume: { get: () => super.resume }
|
|
125
126
|
});
|
|
@@ -127,6 +128,8 @@ class DaumAdapter extends adapter_1.SerialIncyclistDevice {
|
|
|
127
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
129
|
const resumed = yield _super.resume.call(this);
|
|
129
130
|
(_a = this.comms) === null || _a === void 0 ? void 0 : _a.resumeLogging();
|
|
131
|
+
if (startUpdatePull)
|
|
132
|
+
yield this.startUpdatePull();
|
|
130
133
|
return resumed;
|
|
131
134
|
});
|
|
132
135
|
}
|
|
@@ -190,7 +193,7 @@ class DaumAdapter extends adapter_1.SerialIncyclistDevice {
|
|
|
190
193
|
try {
|
|
191
194
|
let wasPaused = false;
|
|
192
195
|
if (isRelaunch && this.isPaused()) {
|
|
193
|
-
this.resume();
|
|
196
|
+
this.resume(false);
|
|
194
197
|
wasPaused = true;
|
|
195
198
|
}
|
|
196
199
|
this.startPromise = this.performStart(props, isRelaunch, wasPaused).then((started) => __awaiter(this, void 0, void 0, function* () {
|