diff options
author | david.huang <david.huang@quantatw.com> | 2017-11-09 16:08:56 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-09 11:53:14 -0800 |
commit | a7c8b19aca80412c1c40f75eb208e383a53cafe3 (patch) | |
tree | bc1c0ed44f54310a79dd94821501013d000e7cae /board/coral | |
parent | 063fc26720afce30fd72e6b2a112416d5264321a (diff) | |
download | chrome-ec-a7c8b19aca80412c1c40f75eb208e383a53cafe3.tar.gz |
Coral: Fix LED name for factory control led by ectool
Correct the LED name in led_set_brightness().
BRANCH=none
BUG=none
TEST=Use ectool led battery amber/blue/green/red to check LED status
Change-Id: I3de34000f9fa516d386aba6ebe42dd69cacd50c7
Signed-off-by: David Huang <David.Huang@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/760182
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'board/coral')
-rw-r--r-- | board/coral/led.c | 10 |
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); |