mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-25 21:34:30 +02:00
mode-button: do not act on disabled LED
This commit is contained in:
parent
53b6f7720e
commit
08ad4e5194
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@
|
||||||
|
|
||||||
:global IfThenElse;
|
: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={
|
:if ([ :len $LED ] = 0) do={
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue