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-28 18:15:51 -0700
commit0e52e9228302252b1cf3a2eadfdca75b900ee4ae (patch)
tree6253b6a87dbed89afedff147b796fd6a9bfaf3e1
parente341982921a503e6be6f7f2c30a9e8f7d2c8d3ce (diff)
downloadchrome-ec-0e52e9228302252b1cf3a2eadfdca75b900ee4ae.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 Original-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> (cherry picked from commit 0d645f105e330ef502cbe01c88561c4d1fd1ae9f) Change-Id: I7ab3ba7d7173b4bfb906c4efa85f27b4c3c26147 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49430
-rw-r--r--board/spring/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/spring/board.c b/board/spring/board.c
index 69133c00ba..968986acbd 100644
--- a/board/spring/board.c
+++ b/board/spring/board.c
@@ -483,6 +483,8 @@ static void board_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;