incyclist-devices 2.3.42 → 2.3.43

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.
@@ -140,7 +140,7 @@ class IncyclistDevice extends events_1.default {
140
140
  }
141
141
  update() { throw new Error("Method not implemented."); }
142
142
  setCyclingMode(mode, settings, sendInitCommands) {
143
- if (!this.isControllable())
143
+ if (!this.isControllable() || !mode)
144
144
  return;
145
145
  const selectedMode = this.createOrGetMode(mode);
146
146
  this.cyclingMode = selectedMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.3.42",
3
+ "version": "2.3.43",
4
4
  "dependencies": {
5
5
  "@protobuf-ts/runtime": "^2.11.1",
6
6
  "@serialport/bindings-interface": "^1.2.2",