diff options
Diffstat (limited to 'board/coral/led.c')
-rw-r--r-- | board/coral/led.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/coral/led.c b/board/coral/led.c index 0743c5e691..f8832f5632 100644 --- a/board/coral/led.c +++ b/board/coral/led.c @@ -204,10 +204,10 @@ static enum led_states led_get_state(void) new_state = STATE_CHARGING_LVL_3; break; case PWR_STATE_IDLE: /* External power connected in IDLE */ - if (charge_get_flags() & CHARGE_FLAG_FORCE_IDLE) - new_state = STATE_FACTORY_TEST; - else - new_state = STATE_DISCHARGE_S0; + new_state = STATE_DISCHARGE_S0; + break; + case PWR_STATE_FORCED_IDLE: + new_state = STATE_FACTORY_TEST; break; default: /* Other states don't alter LED behavior */ |