summaryrefslogtreecommitdiff
path: root/board/lindar
diff options
context:
space:
mode:
authorjerry2.huang <jerry2.huang@lcfc.corp-partner.google.com>2021-02-26 12:03:11 +0800
committerCommit Bot <commit-bot@chromium.org>2021-03-02 04:21:38 +0000
commit2924924170867e577ce1211ddcd0a4b0519a2588 (patch)
tree894236b9254d9b9aae224b1dd58e32baaa18a4e8 /board/lindar
parente1aed455f52d28bf419c86431546b476db4e15e5 (diff)
downloadchrome-ec-2924924170867e577ce1211ddcd0a4b0519a2588.tar.gz
lindar: fix the battery green led cannot be turned on by command
fix issue of the command "ectool led battery green" didn't work BUG=b:174443628 BRANCH=firmware-volteer-13672.B TEST=make buildall ,Verify "ectool led battery [color]" command work normally Signed-off-by: jerry2.huang <jerry2.huang@lcfc.corp-partner.google.com> Change-Id: I5b7eb789106698dc21345a98609947167fde7d47 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2721323 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/lindar')
-rw-r--r--board/lindar/led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/lindar/led.c b/board/lindar/led.c
index 7f86a9b89e..0b65213052 100644
--- a/board/lindar/led.c
+++ b/board/lindar/led.c
@@ -96,8 +96,8 @@ int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness)
led_set_color_battery(EC_LED_COLOR_RED);
else if (brightness[EC_LED_COLOR_AMBER] != 0)
led_set_color_battery(EC_LED_COLOR_AMBER);
- else if (brightness[EC_LED_COLOR_WHITE] != 0)
- led_set_color_battery(EC_LED_COLOR_WHITE);
+ else if (brightness[EC_LED_COLOR_GREEN] != 0)
+ led_set_color_battery(EC_LED_COLOR_GREEN);
else
led_set_color_battery(LED_OFF);
} else if (led_id == EC_LED_ID_POWER_LED) {