summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/gandof/led.c6
-rw-r--r--include/ec_commands.h1
-rw-r--r--util/ectool.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/board/gandof/led.c b/board/gandof/led.c
index 53bd96587b..681864777e 100644
--- a/board/gandof/led.c
+++ b/board/gandof/led.c
@@ -102,11 +102,11 @@ int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness)
switch (led_id) {
case EC_LED_ID_BATTERY_LED:
if (brightness[EC_LED_COLOR_GREEN] != 0 &&
- brightness[EC_LED_COLOR_YELLOW] != 0)
+ brightness[EC_LED_COLOR_ORANGE] != 0)
gandof_led_set_color(led_id, LED_PINK);
else if (brightness[EC_LED_COLOR_GREEN] != 0)
gandof_led_set_color(led_id, LED_GREEN);
- else if (brightness[EC_LED_COLOR_YELLOW] != 0)
+ else if (brightness[EC_LED_COLOR_ORANGE] != 0)
gandof_led_set_color(led_id, LED_AMBER);
else
gandof_led_set_color(led_id, LED_OFF);
@@ -129,7 +129,7 @@ void led_get_brightness_range(enum ec_led_id led_id, uint8_t *brightness_range)
switch (led_id) {
case EC_LED_ID_BATTERY_LED:
brightness_range[EC_LED_COLOR_GREEN] = 1;
- brightness_range[EC_LED_COLOR_YELLOW] = 1;
+ brightness_range[EC_LED_COLOR_ORANGE] = 1;
break;
case EC_LED_ID_POWER_LED:
brightness_range[EC_LED_COLOR_WHITE] = 1;
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 980dfa2b1e..2de4352ec1 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1173,6 +1173,7 @@ enum ec_led_colors {
EC_LED_COLOR_BLUE,
EC_LED_COLOR_YELLOW,
EC_LED_COLOR_WHITE,
+ EC_LED_COLOR_ORANGE,
EC_LED_COLOR_COUNT
};
diff --git a/util/ectool.c b/util/ectool.c
index c5fa0dfa71..3a67d4032e 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -205,7 +205,7 @@ static const char * const image_names[] = {"unknown", "RO", "RW"};
/* Note: depends on enum ec_led_colors */
static const char * const led_color_names[EC_LED_COLOR_COUNT] = {
- "red", "green", "blue", "yellow", "white"};
+ "red", "green", "blue", "yellow", "white", "orange"};
/* Note: depends on enum ec_led_id */
static const char * const led_names[EC_LED_ID_COUNT] = {