mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
spring: Show yellow LED when not fully charged
This includes two situations: 1. When charge state machine is still trying to decide the next state. 2. When we are waiting for acceptable condition to start charging. For now, we show yellow for both. BUG=chrome-os-partner:18914 TEST=none BRANCH=spring Change-Id: I5dd97c735a1ecfee29d506452695014c85d2da0b Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49327 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
@@ -196,6 +196,8 @@ static void battery_led_update(void)
|
||||
/* Discharging with AC, must be battery assist */
|
||||
state = LED_STATE_BREATHING;
|
||||
break;
|
||||
case ST_REINIT:
|
||||
case ST_BAD_COND:
|
||||
case ST_PRE_CHARGING:
|
||||
state = LED_STATE_SOLID_YELLOW;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user