aboutsummaryrefslogtreecommitdiffstats
path: root/mode-button
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-23 16:01:21 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-23 16:01:21 +0200
commit3b65b7e83544e042b8c965aa191cf1a315a52e5f (patch)
tree0ca00ff604e83f41483f074245d2644a52dc3dd6 /mode-button
parentcbb1e624b24c6c6b2a5c55eb4bc8b3ca2ec9febe (diff)
mode-button: fix delay
The `:beep` command is async... So an additional delay is required unconditionally.
Diffstat (limited to 'mode-button')
-rw-r--r--mode-button3
1 files changed, 1 insertions, 2 deletions
diff --git a/mode-button b/mode-button
index a555044..f3d7be7 100644
--- a/mode-button
+++ b/mode-button
@@ -39,9 +39,8 @@
/ system leds set type=$LEDInvert [ find where leds="user-led" type=$LEDState ];
:if ([ / system routerboard settings get silent-boot ] = false) do={
:beep length=200ms;
- } else={
- :delay 200ms;
}
+ :delay 200ms;
/ system leds set type=$LEDState [ find where leds="user-led" type=$LEDInvert ];
:delay 200ms;
}