aboutsummaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c6
1 files changed, 5 insertions, 1 deletions
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;
}
}