From d03e3d0faebb9e643efc7696ceb385b23a4881bf Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 30 Sep 2014 16:50:10 +0200 Subject: Fix theoretical LED step edge case --- ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.c') 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]); -- cgit v1.2.3