aboutsummaryrefslogtreecommitdiffstats
path: root/mode-button
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-23 21:33:38 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-23 21:50:14 +0200
commitfee2523a226e28e08dd2e2264ff857650a886702 (patch)
tree1483a97051c17c36af428992b5483740bb920d16 /mode-button
parent2e4658e49a5a2e575ff6b9c0fdadb66f65142d94 (diff)
mode-button: make LED configurablechange-35
Diffstat (limited to 'mode-button')
-rw-r--r--mode-button4
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;
}