We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dafcecd commit 52d00f3Copy full SHA for 52d00f3
ConnectionManager.lib.nut
@@ -26,6 +26,7 @@ const CM_BLINK_ALWAYS = 0;
26
const CM_BLINK_NEVER = 1;
27
const CM_BLINK_ON_CONNECT = 2;
28
const CM_BLINK_ON_DISCONNECT = 3;
29
+const CM_BLINK_DONT_MESS_WITH_ME = 4;
30
const CM_FLUSH_TIMEOUT = 30;
31
const CM_START_NO_ACTION = 0;
32
const CM_START_CONNECTED = 1;
@@ -457,6 +458,11 @@ class ConnectionManager {
457
458
459
// Enables of disables BlinkUp based on _blinkupBehavior and _connected
460
function _setBlinkUpState() {
461
+ // If you prefer to manage blinkup out of the ConnectionManager
462
+ if (_blinkupBehavior == CM_BLINK_DONT_MESS_WITH_ME) {
463
+ return;
464
+ }
465
+
466
// If it's set to always blinkup
467
if (_blinkupBehavior == CM_BLINK_ALWAYS) {
468
imp.enableblinkup(true);
0 commit comments