From 41436f478d8902130b50b561ad477ef20e42d5fc Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Wed, 4 Mar 2015 17:13:02 -0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/256192 Reviewed-by: David Schneider Reviewed-by: Bill Richardson --- common/lightbar.c | 3 +++ 1 file changed, 3 insertions(+) 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);