diff options
Diffstat (limited to 'mode-button')
-rw-r--r-- | mode-button | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mode-button b/mode-button index c189ad2..217c0cc 100644 --- a/mode-button +++ b/mode-button @@ -23,9 +23,11 @@ :global ModeButtonScheduler; :local LEDInvert do={ + :global ModeButtonLED; + :global IfThenElse; - :local LED [ / system leds find where leds="user-led" type~"^(on|off)\$" interface=[] ]; + :local LED [ / system leds find where leds=$ModeButtonLED type~"^(on|off)\$" interface=[] ]; :if ([ :len $LED ] = 0) do={ :return false; } |