diff options
author | ZhengShunQian <zhengsq@rock-chips.com> | 2015-03-22 14:02:35 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-31 06:32:14 +0000 |
commit | a4c4a2e7abf630612fa62497fdbd982cf1094a24 (patch) | |
tree | cf5ea0afb11672b69c711d6765aeaadc09aa3933 /include | |
parent | fe293908edbac37396d1c205dde7ba1a9adff011 (diff) | |
download | chrome-ec-a4c4a2e7abf630612fa62497fdbd982cf1094a24.tar.gz |
mighty: fix the LED bug of removed battery
Clear curr.batt_is_charging when the battery is not present.
Add a new batt_was_removed flag to track when the battery has been
removed. This causes PWR_STATE_ERROR so the LED shows error state,
and triggers re-reading the static parameters from the battery when
it's reattached.
BUG=chrome-os-partner:38235
TEST=check the LED state on mighty
BRANCH=veyron
Change-Id: I400c22eda4bc0043adf7217166bd9f80c557d991
Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/262007
Commit-Queue: Gediminas Ramanauskas <gedis@chromium.org>
Tested-by: Gediminas Ramanauskas <gedis@chromium.org>
(cherry picked from commit 6727e1dba2aafa81fa9572145413545106ae9626)
Reviewed-on: https://chromium-review.googlesource.com/262140
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions