incyclist-devices 1.5.36 → 1.5.37
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.
package/lib/daum/DaumAdapter.js
CHANGED
|
@@ -217,8 +217,7 @@ class DaumAdapterBase extends device_1.default {
|
|
|
217
217
|
clearInterval(this.iv.update);
|
|
218
218
|
this.iv = undefined;
|
|
219
219
|
}
|
|
220
|
-
|
|
221
|
-
this.bike.stopWorker();
|
|
220
|
+
this.bike.stopWorker();
|
|
222
221
|
this.logEvent({ message: 'stop request completed' });
|
|
223
222
|
this.paused = undefined;
|
|
224
223
|
resolve(true);
|
package/lib/daum/classic/bike.js
CHANGED
|
@@ -220,6 +220,7 @@ class Daum8008 {
|
|
|
220
220
|
}, 50);
|
|
221
221
|
}
|
|
222
222
|
stopWorker() {
|
|
223
|
+
this.logEvent({ message: "stop worker", port: this.getPort() });
|
|
223
224
|
if (this.queue !== undefined)
|
|
224
225
|
this.queue.clear();
|
|
225
226
|
if (this.bikeCmdWorker !== undefined) {
|
|
@@ -230,7 +231,7 @@ class Daum8008 {
|
|
|
230
231
|
this.queue.clear();
|
|
231
232
|
}
|
|
232
233
|
sendDaum8008CommandfromQueue() {
|
|
233
|
-
if (!this.connected || this.closing)
|
|
234
|
+
if (!this.connected || this.closing || !this.sp)
|
|
234
235
|
return;
|
|
235
236
|
if (this.cmdStart !== undefined && this.error !== undefined) {
|
|
236
237
|
if (this.cmdStart !== undefined) {
|
|
@@ -75,6 +75,7 @@ declare class Daum8i {
|
|
|
75
75
|
sendACK(): void;
|
|
76
76
|
sendNAK(): void;
|
|
77
77
|
sendReservedDaum8iCommand(command: ReservedCommands, cmdType: any, data?: Buffer): Promise<any[]>;
|
|
78
|
+
stopWorker(): void;
|
|
78
79
|
getProtocolVersion(): Promise<string>;
|
|
79
80
|
getDashboardVersion(): Promise<unknown>;
|
|
80
81
|
getDeviceType(): Promise<any>;
|
package/lib/daum/premium/bike.js
CHANGED