incyclist-devices 2.1.40 → 2.1.41
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.
|
@@ -3,5 +3,5 @@ import { SerialInterface } from "../serial";
|
|
|
3
3
|
import AntInterface from "../antv2/base/interface";
|
|
4
4
|
import { BleInterface } from "../ble";
|
|
5
5
|
export default class InterfaceFactory {
|
|
6
|
-
static create(ifaceName: string, props?: InterfaceProps):
|
|
6
|
+
static create(ifaceName: string, props?: InterfaceProps): AntInterface | BleInterface | SerialInterface;
|
|
7
7
|
}
|
|
@@ -125,7 +125,11 @@ class DaumClassicAdapter extends DaumAdapter_1.default {
|
|
|
125
125
|
}
|
|
126
126
|
if (!wasPaused && !startState.setBikeType) {
|
|
127
127
|
const bikeType = this.getCyclingMode().getSetting('bikeType') || 'race';
|
|
128
|
-
|
|
128
|
+
try {
|
|
129
|
+
yield this.getComms().setBikeType(bikeType.toLowerCase());
|
|
130
|
+
}
|
|
131
|
+
catch (err) {
|
|
132
|
+
}
|
|
129
133
|
startState.setBikeType = true;
|
|
130
134
|
}
|
|
131
135
|
if (!wasPaused && !startState.startProg) {
|