mode-button: make LED configurable

This commit is contained in:
Christian Hesse 2020-10-23 21:33:38 +02:00
parent 2e4658e49a
commit fee2523a22
6 changed files with 11 additions and 5 deletions

View file

@ -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;
}