diff options
author | Aseda Aboagye <aaboagye@google.com> | 2017-09-14 16:51:40 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-21 01:07:52 -0700 |
commit | cf696d75d5afbf919fe8f45a7e320a61f6bd8bb1 (patch) | |
tree | 6a75730b88b575e7ffc191ab713ff92664578fb6 | |
parent | d738db7ededf63babff7668e940d129ad6c1497d (diff) | |
download | chrome-ec-cf696d75d5afbf919fe8f45a7e320a61f6bd8bb1.tar.gz |
zoombini: led: Invert duty cycle.
The LEDs were on when they were intended to be off. This commit just
inverts the duty cycles.
BUG=None
BRANCH=None
TEST=Flash zoombini. Verify all LEDs are off. Plug in battery, verify
that Red LED is on.
Change-Id: I78e2bce45603fd223ebaeacb024a210c5db70123
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/670060
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/zoombini/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/zoombini/led.c b/board/zoombini/led.c index 369e9c2a4a..30a2eea94c 100644 --- a/board/zoombini/led.c +++ b/board/zoombini/led.c @@ -31,7 +31,7 @@ static enum pwm_channel led_pwm_ch_map[EC_LED_ID_COUNT] = { static void set_led_state(enum led_id id, int on) { - pwm_set_duty(led_pwm_ch_map[id], on ? 80 : 0); + pwm_set_duty(led_pwm_ch_map[id], on ? 20 : 100); } static uint8_t power_led_is_pulsing; |