summaryrefslogtreecommitdiff
path: root/board/redrix/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/redrix/led.c')
-rw-r--r--board/redrix/led.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/board/redrix/led.c b/board/redrix/led.c
index ca98daaf63..96ccae2689 100644
--- a/board/redrix/led.c
+++ b/board/redrix/led.c
@@ -189,8 +189,15 @@ static void led_set_battery(void)
}
break;
case PWR_STATE_ERROR:
- set_active_port_color((battery_ticks & 0x1) ?
- LED_AMBER : LED_OFF);
+ if (led_auto_control_is_enabled(EC_LED_ID_RIGHT_LED)) {
+ led_set_color_battery(RIGHT_PORT, (battery_ticks & 0x1)
+ ? LED_AMBER : LED_OFF);
+ }
+
+ if (led_auto_control_is_enabled(EC_LED_ID_LEFT_LED)) {
+ led_set_color_battery(LEFT_PORT, (battery_ticks & 0x1)
+ ? LED_AMBER : LED_OFF);
+ }
break;
case PWR_STATE_CHARGE_NEAR_FULL:
set_active_port_color(LED_WHITE);