From 55e114c190318274f06a9749810470e6c4e8dfea Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 23 Oct 2020 20:32:45 +0200 Subject: mode-button: act on led with no interface setting only --- mode-button | 4 ++-- 1 file 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; } -- cgit v1.2.3-70-g09d2