diff options
author | Christian Hesse <mail@eworm.de> | 2024-11-15 23:07:26 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-11-15 23:09:24 +0100 |
commit | 08ad4e519410c91d61e172f4ea97046dffc2db31 (patch) | |
tree | db4fe9c9bcecbf49660430b3ca829e64c448b44b | |
parent | 53b6f7720ec33146581ceb878447d35d462c8697 (diff) |
mode-button: do not act on disabled LED
-rw-r--r-- | mode-button.rsc | 3 |
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; } |