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.
- package/lib/base/adpater.js +1 -1
- package/package.json +1 -1
package/lib/base/adpater.js
CHANGED
|
@@ -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;
|