From c641aede0abe6a51b3cea362cca4e71e0f1623bf Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 15 Dec 2014 12:01:08 +0100 Subject: ui: Switch off LEDs when going into select_coarse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’re starting with a value of 0. --- ui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui.c b/ui.c index 297d9e6..392f383 100644 --- a/ui.c +++ b/ui.c @@ -219,8 +219,12 @@ static void doIdle () { gyroStart (); mode = UIMODE_SELECT_COARSE; puts ("idle->select"); - speakerStart (SPEAKER_BEEP); + /* start with a value of zero */ + for (uint8_t i = 0; i < PWM_LED_COUNT; i++) { + pwmSet (i, PWM_OFF); + } coarseValue = 0; + speakerStart (SPEAKER_BEEP); return; } } -- cgit v1.2.3