summaryrefslogtreecommitdiff
path: root/board/scarlet
diff options
context:
space:
mode:
Diffstat (limited to 'board/scarlet')
-rw-r--r--board/scarlet/led.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/scarlet/led.c b/board/scarlet/led.c
index 9c1d00ac7b..2ec838702c 100644
--- a/board/scarlet/led.c
+++ b/board/scarlet/led.c
@@ -87,11 +87,11 @@ static void scarlet_led_set_battery(void)
bat_led_set_color(LED_GREEN);
break;
case PWR_STATE_IDLE: /* External power connected in IDLE. */
- if (chflags & CHARGE_FLAG_FORCE_IDLE)
- bat_led_set_color((battery_second & 0x2) ? LED_GREEN :
- LED_AMBER);
- else
- bat_led_set_color(LED_GREEN);
+ bat_led_set_color(LED_GREEN);
+ break;
+ case PWR_STATE_FORCED_IDLE:
+ bat_led_set_color((battery_second & 0x2) ? LED_GREEN :
+ LED_AMBER);
break;
default:
/* Other states don't alter LED behavior */