mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 04:24:29 +02:00
mode-button: make LED configurable
This commit is contained in:
parent
2e4658e49a
commit
fee2523a22
6 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue