mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
poppy: Update LED behaviour
According to spec, blink when charge is lower than 10%. BRANCH=none BUG=b:37970194 TEST=Flash soraka, LED behave as intended. Change-Id: Ifaab76bb1a92f060eb81f06deab84b45509ad40d Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/737170 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
711b732478
commit
c49d32a265
@@ -102,12 +102,8 @@ static void board_led_set_battery(void)
|
||||
set_active_port_color(LED_AMBER);
|
||||
break;
|
||||
case PWR_STATE_DISCHARGE:
|
||||
/*
|
||||
* TODO(b/37970194): Do we really want to blink on low battery?
|
||||
* If yes, what's the threshold? In S0 only?
|
||||
*/
|
||||
if (led_auto_control_is_enabled(EC_LED_ID_LEFT_LED)) {
|
||||
if (charge_get_percent() < 12)
|
||||
if (charge_get_percent() <= 10)
|
||||
side_led_set_color(0,
|
||||
(battery_ticks & 0x4) ? LED_WHITE : LED_OFF);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user