summaryrefslogtreecommitdiff
path: root/board/reef/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/reef/led.c')
-rw-r--r--board/reef/led.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/board/reef/led.c b/board/reef/led.c
index ee06d31995..b559a00da8 100644
--- a/board/reef/led.c
+++ b/board/reef/led.c
@@ -100,7 +100,13 @@ static void led_set_battery(void)
case PWR_STATE_CHARGE:
led_set_color_battery(LED_AMBER);
break;
- case PWR_STATE_DISCHARGE:
+ case PWR_STATE_DISCHARGE_FULL:
+ if (extpower_is_present()) {
+ led_set_color_battery(LED_BLUE);
+ break;
+ }
+ /* Intentional fall-through */
+ case PWR_STATE_DISCHARGE /* and PWR_STATE_DISCHARGE_FULL */:
if (chipset_in_state(CHIPSET_STATE_ON)) {
led_set_color_battery(LED_BLUE);
} else if (chipset_in_state(CHIPSET_STATE_SUSPEND |