incyclist-devices 1.5.13 → 1.5.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.
- package/lib/ble/pwr.js +1 -0
- package/lib/ble/tacx.js +3 -1
- package/lib/ble/wahoo-kickr.js +3 -1
- package/lib/daum/classic/DaumClassicAdapter.d.ts +3 -3
- package/lib/daum/classic/DaumClassicAdapter.js +1 -1
- package/lib/daum/premium/DaumPremiumAdapter.d.ts +3 -3
- package/lib/daum/premium/DaumPremiumAdapter.js +1 -1
- package/package.json +1 -1
package/lib/ble/pwr.js
CHANGED
package/lib/ble/tacx.js
CHANGED
|
@@ -229,9 +229,11 @@ class TacxAdvancedFitnessMachineDevice extends fm_1.default {
|
|
|
229
229
|
if (flags & 0x1)
|
|
230
230
|
data.readUInt8(offset++);
|
|
231
231
|
if (flags & 0x4) {
|
|
232
|
-
data.readUInt16LE(offset);
|
|
233
232
|
offset += 2;
|
|
234
233
|
}
|
|
234
|
+
if (flags & 0x10) {
|
|
235
|
+
offset += 6;
|
|
236
|
+
}
|
|
235
237
|
if (flags & 0x20) {
|
|
236
238
|
const crankData = {
|
|
237
239
|
revolutions: data.readUInt16LE(offset),
|
package/lib/ble/wahoo-kickr.js
CHANGED
|
@@ -150,9 +150,11 @@ class WahooAdvancedFitnessMachineDevice extends fm_1.default {
|
|
|
150
150
|
if (flags & 0x1)
|
|
151
151
|
data.readUInt8(offset++);
|
|
152
152
|
if (flags & 0x4) {
|
|
153
|
-
data.readUInt16LE(offset);
|
|
154
153
|
offset += 2;
|
|
155
154
|
}
|
|
155
|
+
if (flags & 0x10) {
|
|
156
|
+
offset += 6;
|
|
157
|
+
}
|
|
156
158
|
if (flags & 0x20) {
|
|
157
159
|
const crankData = {
|
|
158
160
|
revolutions: data.readUInt16LE(offset),
|
|
@@ -15,9 +15,9 @@ export default class DaumClassicAdapter extends DaumAdapter {
|
|
|
15
15
|
pause(): Promise<boolean>;
|
|
16
16
|
resume(): Promise<boolean>;
|
|
17
17
|
check(): Promise<unknown>;
|
|
18
|
-
relaunch(props: any): Promise<
|
|
19
|
-
start(props: any): Promise<
|
|
20
|
-
launch(props: any, isRelaunch?: boolean): Promise<
|
|
18
|
+
relaunch(props: any): Promise<boolean>;
|
|
19
|
+
start(props: any): Promise<boolean>;
|
|
20
|
+
launch(props: any, isRelaunch?: boolean): Promise<boolean>;
|
|
21
21
|
startRide(props?: {
|
|
22
22
|
user?: any;
|
|
23
23
|
bikeSettings?: any;
|
|
@@ -9,8 +9,8 @@ export default class DaumPremiumDevice extends DaumAdapter {
|
|
|
9
9
|
check(): Promise<unknown>;
|
|
10
10
|
pause(): Promise<boolean>;
|
|
11
11
|
resume(): Promise<boolean>;
|
|
12
|
-
relaunch(props: any): Promise<
|
|
13
|
-
start(props: any): Promise<
|
|
14
|
-
launch(props: any, isRelaunch?: boolean): Promise<
|
|
12
|
+
relaunch(props: any): Promise<boolean>;
|
|
13
|
+
start(props: any): Promise<boolean>;
|
|
14
|
+
launch(props: any, isRelaunch?: boolean): Promise<boolean>;
|
|
15
15
|
getCurrentBikeData(): Promise<any>;
|
|
16
16
|
}
|