summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/led_wolf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/led_wolf.c b/common/led_wolf.c
index 9212d467ac..0df2493edc 100644
--- a/common/led_wolf.c
+++ b/common/led_wolf.c
@@ -55,10 +55,12 @@ static void led_tick(void)
bat_led_set_color(LED_OFF);
break;
case PWR_STATE_DISCHARGE:
- bat_led_set_color(LED_AMBER);
+ if (chipset_in_state(CHIPSET_STATE_ON))
+ bat_led_set_color(LED_AMBER);
+ else
+ bat_led_set_color(LED_OFF);
break;
case PWR_STATE_ERROR:
- /*FIXME Now keep blink amber till the new spec arrival */
bat_led_set_color((ticks & 0x2) ? LED_AMBER : LED_OFF);
break;
case PWR_STATE_IDLE: