incyclist-devices 2.1.6 → 2.1.7
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.
|
@@ -120,8 +120,8 @@ class AntAdapter extends adpater_1.default {
|
|
|
120
120
|
this.emit('device-info', this.getSettings(), { manufacturer: (0, utils_2.getBrand)(deviceData.ManId) });
|
|
121
121
|
}
|
|
122
122
|
const logData = this.getLogData(deviceData, ['PairedDevices', 'RawData']);
|
|
123
|
-
this.logEvent({ message: 'onDeviceData', data: logData, paused: this.paused });
|
|
124
|
-
if (
|
|
123
|
+
this.logEvent({ message: 'onDeviceData', data: logData, paused: this.paused, started: this.started, canEmit: this.canEmitData() });
|
|
124
|
+
if (this.isStopped() || !this.canEmitData())
|
|
125
125
|
return;
|
|
126
126
|
if (this.isControllable()) {
|
|
127
127
|
let incyclistData = this.mapData(deviceData);
|
|
@@ -405,7 +405,6 @@ class AntAdapter extends adpater_1.default {
|
|
|
405
405
|
this.promiseWaitForData = null;
|
|
406
406
|
if (this.startStatus) {
|
|
407
407
|
this.startStatus.interrupted = true;
|
|
408
|
-
console.log('~~~ still starting');
|
|
409
408
|
yield (0, utils_1.sleep)(20);
|
|
410
409
|
}
|
|
411
410
|
try {
|