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:
Vic Yang
2013-04-27 01:23:45 +08:00
committed by ChromeBot
parent 92bd863d8d
commit 0d645f105e

View File

@@ -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;