incyclist-devices 2.1.40 → 2.2.0

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): BleInterface | AntInterface | SerialInterface;
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
- yield this.getComms().setBikeType(bikeType.toLowerCase());
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) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.1.40",
3
+ "version": "2.2.0",
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.1",
10
+ "incyclist-ant-plus": "^0.3.2",
11
11
  "win32filetime": "^1.0.2"
12
12
  },
13
13
  "peerDependencies": {