aboutsummaryrefslogtreecommitdiffstats
path: root/mode-button.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-11-15 23:07:26 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-11-15 23:09:24 +0100
commit08ad4e519410c91d61e172f4ea97046dffc2db31 (patch)
treedb4fe9c9bcecbf49660430b3ca829e64c448b44b /mode-button.rsc
parent53b6f7720ec33146581ceb878447d35d462c8697 (diff)
mode-button: do not act on disabled LED
Diffstat (limited to 'mode-button.rsc')
-rw-r--r--mode-button.rsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mode-button.rsc b/mode-button.rsc
index ac1fb4f..3bd922b 100644
--- a/mode-button.rsc
+++ b/mode-button.rsc
@@ -36,7 +36,8 @@
:global IfThenElse;
- :local LED [ /system/leds/find where leds=$ModeButtonLED type~"^(on|off)\$" interface=[] ];
+ :local LED [ /system/leds/find where leds=$ModeButtonLED \
+ !disabled type~"^(on|off)\$" interface=[] ];
:if ([ :len $LED ] = 0) do={
:return false;
}