diff options
author | YongBeum.Ha <ybha@samsung.corp-partner.google.com> | 2020-05-19 17:35:48 +0900 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-20 19:44:22 +0000 |
commit | 1cea0e980f3a1efddecdb4b1f9595ab83de37aa3 (patch) | |
tree | 47b5f1591f61fce7999bb77e2d168fa56a64474c /board | |
parent | f9c1c549afb7fa8f41513250d46904275616a19b (diff) | |
download | chrome-ec-1cea0e980f3a1efddecdb4b1f9595ab83de37aa3.tar.gz |
nightfury : blink charge led on low battery
need to blink charge led to notify user that battery is low.
BUG=b:156972095
BRANCH=firmware-hatch-12672.B
TEST=make -j BOARD=nightfury
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I76f984c8d78c5e19e4ee1e8a158e1773982ca1c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2206942
Reviewed-by: Bob Moragues <moragues@chromium.org>
Commit-Queue: Bob Moragues <moragues@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/nightfury/led.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/nightfury/led.c b/board/nightfury/led.c index 3be1c9cd96..b20dbbd6f0 100644 --- a/board/nightfury/led.c +++ b/board/nightfury/led.c @@ -15,13 +15,14 @@ #define LED_OFF_LVL 1 #define LED_ON_LVL 0 -const int led_charge_lvl_1 = 0; +const int led_charge_lvl_1 = 1; const int led_charge_lvl_2 = 100; /* Nightfury : There are 3 leds for AC, Battery and Power */ struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = { - [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_RED, LED_INDEFINITE} }, + [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_RED, 0.5 * LED_ONE_SEC}, + {LED_OFF, 0.5 * LED_ONE_SEC} }, [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_RED, LED_INDEFINITE} }, [STATE_CHARGING_FULL_CHARGE] = {{EC_LED_COLOR_GREEN, LED_INDEFINITE} }, [STATE_DISCHARGE_S0] = {{EC_LED_COLOR_GREEN, LED_INDEFINITE} }, |