From 0d645f105e330ef502cbe01c88561c4d1fd1ae9f Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Sat, 27 Apr 2013 01:23:45 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.chromium.org/gerrit/49327 Reviewed-by: Vincent Palatin --- common/lp5562_battery_led.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lp5562_battery_led.c b/common/lp5562_battery_led.c index 1bb66e2e86..6d038e3d0e 100644 --- a/common/lp5562_battery_led.c +++ b/common/lp5562_battery_led.c @@ -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;