summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChromeOS Developer <dparker@chromium.org>2014-03-11 15:09:58 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-04-01 00:47:23 +0000
commitbc8ed17c5f17aa0810b1ec8387c276171d0ce784 (patch)
tree6d4fd84a7781323d44003b4a324fc2f640867d3d
parent8763e86df0d90756fc588dabc34be4518df29425 (diff)
downloadchrome-ec-bc8ed17c5f17aa0810b1ec8387c276171d0ce784.tar.gz
Squawks: Fix manual control of the power LED
BUG=chrome-os-partner:25531 BRANCH=None TEST=Run the following: ectool led power off ectool led power green ectool led power green=20 ectool led power auto Change-Id: I0f6808290a495666dc5c048c9a2198fc6dd337d5 Original-Change-Id: I6d2ad424da12b7db5b6a33acd281eecfe56f61e0 Signed-off-by: Dave Parker <dparker@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/189603 Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/192198
-rw-r--r--board/squawks/led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/squawks/led.c b/board/squawks/led.c
index c65d4c02fc..6b2f3ffe25 100644
--- a/board/squawks/led.c
+++ b/board/squawks/led.c
@@ -48,7 +48,7 @@ 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 (led_id == EC_LED_ID_POWER_LED) {
- pwm_set_duty(PWM_CH_LED_BATTERY_GREEN,
+ pwm_set_duty(PWM_CH_LED_POWER_GREEN,
brightness[EC_LED_COLOR_GREEN]);
} else {
pwm_set_duty(PWM_CH_LED_BATTERY_ORANGE,