summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/coral/led.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/coral/led.c b/board/coral/led.c
index 94914db389..6050ba64b9 100644
--- a/board/coral/led.c
+++ b/board/coral/led.c
@@ -161,13 +161,13 @@ void led_get_brightness_range(enum ec_led_id led_id, uint8_t *brightness_range)
int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness)
{
if (brightness[EC_LED_COLOR_BLUE] != 0)
- led_set_color_battery(GPIO_LED_COLOR_2);
+ led_set_color_battery(LED_COLOR_2);
else if (brightness[EC_LED_COLOR_AMBER] != 0)
- led_set_color_battery(GPIO_LED_COLOR_1);
+ led_set_color_battery(LED_COLOR_1);
else if (brightness[EC_LED_COLOR_RED] != 0)
- led_set_color_battery(GPIO_LED_COLOR_2);
- else if (brightness[EC_LED_COLOR_RED] != 0)
- led_set_color_battery(GPIO_LED_COLOR_1);
+ led_set_color_battery(LED_COLOR_2);
+ else if (brightness[EC_LED_COLOR_GREEN] != 0)
+ led_set_color_battery(LED_COLOR_1);
else
led_set_color_battery(LED_OFF);