lightbar: clear all segments first before starting konami seq

Clear all lightbar segments first before starting konami sequence.

If currently displaying Google colors, we need this so the start
of the sequence shows up correctly.

BUG=chrome-os-partner:37469
BRANCH=samus
TEST=from S0 with google colors on lightbar, run "lightbar seq konami"
from EC console and make sure 1st and 4th segments are cleared before
starting konami sequence.

Change-Id: I92ba8f29414c279895658167f8d5958fe49ea034
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/256192
Reviewed-by: David Schneider <dnschneid@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
Alec Berg
2015-03-04 17:13:02 -08:00
committed by ChromeOS Commit Bot
parent e93d91558f
commit 41436f478d

View File

@@ -865,6 +865,9 @@ static uint32_t sequence_KONAMI(void)
int tmp;
uint32_t r;
/* First clear all segments */
lb_set_rgb(NUM_LEDS, 0, 0, 0);
/* Force brightness to max, then restore it */
tmp = lb_get_brightness();
lb_set_brightness(255);