incyclist-devices 2.1.41 → 2.2.1
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/antv2/pwr/adapter.js
CHANGED
|
@@ -47,6 +47,16 @@ class AntPwrAdapter extends adapter_1.default {
|
|
|
47
47
|
const hasData = has(Power) || has(CalculatedPower) || has(Cadence) || has(CalculatedCadence);
|
|
48
48
|
return hasData;
|
|
49
49
|
}
|
|
50
|
+
sendUpdate(request) {
|
|
51
|
+
try {
|
|
52
|
+
if (this.isPaused() || this.isStopped())
|
|
53
|
+
return;
|
|
54
|
+
this.getCyclingMode().sendBikeUpdate(request);
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
this.logEvent({ message: 'Error', fn: 'sendUpdate', error: err.message });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
50
60
|
}
|
|
51
61
|
AntPwrAdapter.INCYCLIST_PROFILE_NAME = 'Power Meter';
|
|
52
62
|
AntPwrAdapter.ANT_PROFILE_NAME = 'PWR';
|
package/lib/ble/cp/adapter.js
CHANGED
|
@@ -90,7 +90,9 @@ class PwrAdapter extends adapter_1.default {
|
|
|
90
90
|
}
|
|
91
91
|
sendUpdate(request) {
|
|
92
92
|
try {
|
|
93
|
-
|
|
93
|
+
if (this.isPaused() || this.isStopped())
|
|
94
|
+
return;
|
|
95
|
+
this.getCyclingMode().sendBikeUpdate(request);
|
|
94
96
|
}
|
|
95
97
|
catch (err) {
|
|
96
98
|
this.logEvent({ message: 'Error', fn: 'sendUpdate', error: err.message });
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "incyclist-devices",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@serialport/bindings-interface": "^1.2.2",
|
|
6
6
|
"@serialport/parser-byte-length": "^9.0.1",
|
|
7
7
|
"@serialport/parser-delimiter": "^9.0.1",
|
|
8
8
|
"@serialport/parser-readline": "^10.5.0",
|
|
9
9
|
"@serialport/stream": "^10.5.0",
|
|
10
|
-
"incyclist-ant-plus": "^0.3.
|
|
10
|
+
"incyclist-ant-plus": "^0.3.2",
|
|
11
11
|
"win32filetime": "^1.0.2"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|