mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
dccb0ed867c7409e06faf7b9b353ddb235c43ee0
The LED pattern for lowest battery level is supposed to indicate that there isn't enough battery present to boot the AP. The pattern_tbl array had this value set to 2. However, it's better to tie this to the constant defined in board.h so that it's consistent with when the AP will be allowed to boot. In addition, adjusted the battery level ranges to work correctly with the <= check. BUG=b:35584895 BRANCH=eve TEST=Used 'battfake' console command to verify that the patterns changed at the expected battery charge levels. Change-Id: Ie85a448ad4803be7e612c382b8e60fa42356d257 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/562542 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Todd Broch <tbroch@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%