summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-04-27 01:23:45 +0800
committerChromeBot <chrome-bot@google.com>2013-04-26 12:36:27 -0700
commit0d645f105e330ef502cbe01c88561c4d1fd1ae9f (patch)
tree2b34a493b762af911ed05fa9c1c234db3a176118
parent92bd863d8dcd1d006d39b9f95547af5c7347c254 (diff)
downloadchrome-ec-0d645f105e330ef502cbe01c88561c4d1fd1ae9f.tar.gz
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>
-rw-r--r--common/lp5562_battery_led.c2
1 files changed, 2 insertions, 0 deletions
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;