summaryrefslogtreecommitdiff
path: root/board/chell/led.c
diff options
context:
space:
mode:
authorBruce <Bruce.Wan@quantatw.com>2015-12-29 18:50:28 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-05 23:39:06 -0800
commit7b3032b1c7b73d5543c979f945ae330d1d33709a (patch)
tree5e4f6f3ba9b099f602e45ab6ce3c9936ec20da8e /board/chell/led.c
parent9fce7075d992a5fc03476169600823b207ae5ff2 (diff)
downloadchrome-ec-7b3032b1c7b73d5543c979f945ae330d1d33709a.tar.gz
Chell: modify led setting for OEM spec
Modify the led blink white at battery capacity less than 12%. BUG=None BRANCH=None TEST=check the led blink white at battery capacity less than 12% Change-Id: I3494ed7d207e769fe081b4442fd298b4e481e0a7 Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/319729 Commit-Ready: Bruce Wan <Bruce.Wan@quantatw.com> Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/chell/led.c')
-rw-r--r--board/chell/led.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/board/chell/led.c b/board/chell/led.c
index 7e700d8805..c5ffb02c4d 100644
--- a/board/chell/led.c
+++ b/board/chell/led.c
@@ -106,14 +106,7 @@ static void board_led_set_battery(void)
bat_led_set_color(LED_AMBER);
break;
case PWR_STATE_DISCHARGE:
- /*
- * See crosbug.com/p/22159. There's a 3% difference
- * between the battery level seen by the kernel and what's
- * really going on, so if they want to see 12%, we use 15%.
- * Hard code this number here, because this only affects the
- * LED color, not the battery charge state.
- */
- if (charge_get_percent() < 15)
+ if (charge_get_percent() < 12)
bat_led_set_color(
(battery_ticks & 0x4) ? LED_WHITE : LED_OFF);
else