diff options
author | Christian Hesse <mail@eworm.de> | 2020-10-23 21:33:38 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-10-23 21:50:14 +0200 |
commit | fee2523a226e28e08dd2e2264ff857650a886702 (patch) | |
tree | 1483a97051c17c36af428992b5483740bb920d16 /mode-button | |
parent | 2e4658e49a5a2e575ff6b9c0fdadb66f65142d94 (diff) |
mode-button: make LED configurablechange-35
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; } |