aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-23 20:32:45 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-23 20:32:45 +0200
commit55e114c190318274f06a9749810470e6c4e8dfea (patch)
tree5ae14fcbfa6a3ad2e326387d599889900aff664d
parent3b65b7e83544e042b8c965aa191cf1a315a52e5f (diff)
mode-button: act on led with no interface setting only
-rw-r--r--mode-button4
1 files changed, 2 insertions, 2 deletions
diff --git a/mode-button b/mode-button
index f3d7be7..2493208 100644
--- a/mode-button
+++ b/mode-button
@@ -36,12 +36,12 @@
$LogPrintExit info ("Acting on " . $Count . " mode-button presses: " . $Code) false;
:for I from=1 to=$Count do={
- / system leds set type=$LEDInvert [ find where leds="user-led" type=$LEDState ];
+ / system leds set type=$LEDInvert [ find where leds="user-led" type=$LEDState interface=[] ];
:if ([ / system routerboard settings get silent-boot ] = false) do={
:beep length=200ms;
}
:delay 200ms;
- / system leds set type=$LEDState [ find where leds="user-led" type=$LEDInvert ];
+ / system leds set type=$LEDState [ find where leds="user-led" type=$LEDInvert interface=[] ];
:delay 200ms;
}