mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
lightbar: clear all segments before starting tap for battery
This makes sure to clear all segments before turning on lightbar for tap for battery. Without this, the previous colors are stored and flash briefly before starting the tap for battery pattern. BUG=chrome-os-partner:45835 BRANCH=smaug TEST=tested on ryu. go to s5, type 'lightbar seq tap' and see that the tap sequence starts without first blinking google colors. note that this doesn't affect samus because for samus in s5, the lightbar is not powered, so when we do tap for battery, we first power the lightbar and the registers are cleared. Change-Id: Ic7ae8c580005e786ba35656d8feeedac56e35cfd Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/302147 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> (cherry picked from commit 962d0b2595b1dbb5ef162b7e6b4db7ce8a65e6c5) Reviewed-on: https://chromium-review.googlesource.com/302447
This commit is contained in:
@@ -1064,6 +1064,9 @@ static uint32_t sequence_TAP(void)
|
||||
lb_set_rgb(NUM_LEDS, 0, 0, 0);
|
||||
}
|
||||
#endif
|
||||
/* First clear all segments */
|
||||
lb_set_rgb(NUM_LEDS, 0, 0, 0);
|
||||
|
||||
lb_on();
|
||||
|
||||
for (i = 0; i < NUM_LEDS; i++)
|
||||
|
||||
Reference in New Issue
Block a user