aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mode-button10
1 files changed, 6 insertions, 4 deletions
diff --git a/mode-button b/mode-button
index 242cb46..3aee63e 100644
--- a/mode-button
+++ b/mode-button
@@ -32,13 +32,15 @@
:if ([ :len $Code ] > 0) do={
$LogPrintExit info ("Acting on " . $Count . " mode-button presses: " . $Code) false;
- :if ([ / system routerboard settings get silent-boot ] = false) do={
- :for I from=1 to=$Count do={
+ :for I from=1 to=$Count do={
+ / system leds set type=on [ find where leds="user-led" type=off ];
+ :if ([ / system routerboard settings get silent-boot ] = false) do={
:beep length=200ms;
+ } else={
:delay 200ms;
}
- } else={
- :delay 1s;
+ / system leds set type=off [ find where leds="user-led" type=on ];
+ :delay 200ms;
}
[ :parse $Code ];