aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index ce98b32..aaf3c5b 100644
--- a/ui.c
+++ b/ui.c
@@ -210,7 +210,7 @@ static void doRun () {
speakerStart (SPEAKER_BEEP);
timerStop ();
timerStart (ALARM_TIME);
- } else {
+ } else if (currLed > 0) {
/* one step */
--brightness[currLed];
pwmSet (horizonLed (currLed), brightness[currLed]);