diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-03-04 17:13:02 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-06 08:49:10 +0000 |
commit | 41436f478d8902130b50b561ad477ef20e42d5fc (patch) | |
tree | 8815fc763ca5caddd87ec3483e05369f58a71f48 /common/lightbar.c | |
parent | e93d91558f0ea9771aad052a97fe9c36cb0f48f5 (diff) | |
download | chrome-ec-41436f478d8902130b50b561ad477ef20e42d5fc.tar.gz |
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>
Diffstat (limited to 'common/lightbar.c')
-rw-r--r-- | common/lightbar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/lightbar.c b/common/lightbar.c index 563cf70991..ed25b55cb2 100644 --- a/common/lightbar.c +++ b/common/lightbar.c @@ -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); |