summaryrefslogtreecommitdiff
path: root/common/lightbar.c
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-01-21 12:05:32 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-21 23:39:11 +0000
commit83b4a9644e73dd86c752a64111e0362d7d511c1a (patch)
tree034461b43cada78e633ce5d7128f8d3e6beea891 /common/lightbar.c
parent3120dc950f96512e0780ffc3c99c9dad6f82a33d (diff)
downloadchrome-ec-83b4a9644e73dd86c752a64111e0362d7d511c1a.tar.gz
samus: lightbar: Set tap for battery red threshold to match kernel
Set the battery threshold for tap for battery to show red to match the kernel percentage at which the battery icon turns red. This threshold is 14% real battery percentage which is equivalent to 10% battery for what the user is shown. Note: due to rounding we may still be off, but this closes the window at which these will differ. BUG=chrome-os-partner:35664 BRANCH=samus TEST=make buildall. compare to CL:48904 where we made a similar change for the lightbar color to turn red when running. Change-Id: I31d3c4544c57bc11967d0ba7a54d26e543f6bf5b Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/242255 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/lightbar.c')
-rw-r--r--common/lightbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/lightbar.c b/common/lightbar.c
index d5d0d85231..6a72e4458f 100644
--- a/common/lightbar.c
+++ b/common/lightbar.c
@@ -84,7 +84,7 @@ static const struct lightbar_params_v1 default_params = {
.tap_gate_delay = 200 * MSEC, /* segment gating delay */
.tap_display_time = 3 * SECOND, /* total sequence time */
- .tap_pct_red = 10, /* below this is red */
+ .tap_pct_red = 14, /* below this is red */
.tap_pct_green = 94, /* above this is green */
.tap_seg_min_on = 35, /* min intensity (%) for "on" */
.tap_seg_max_on = 100, /* max intensity (%) for "on" */