summaryrefslogtreecommitdiff
path: root/board/elm
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2016-10-24 16:42:48 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-25 17:33:48 -0700
commite46d67518e7901af61a1884891a807ba125ac421 (patch)
treeec57149bec5bf3a6404b575fd9b5c455b330df7b /board/elm
parenta15ac8e733f9245e020add9ff9269858f2737545 (diff)
downloadchrome-ec-e46d67518e7901af61a1884891a807ba125ac421.tar.gz
reef/pyro/elm/amenia/snappy: Remove false battery critical message
Till the charger task is initialized port is not set for the BD9995X users and a false battery critical message is printed. Removed the false message printed for BD9995X users to avoid confusion. BUG=chrome-os-partner:58972 BRANCH=none TEST=Manually tested on Reef. False battery critical message is not printed on the EC console. Change-Id: Iec8d0f354c4f6dc17efa9da8db38b125e57addab Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/402668 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/elm')
-rw-r--r--board/elm/board.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/elm/board.c b/board/elm/board.c
index 9a9c70918f..5631e1d7d2 100644
--- a/board/elm/board.c
+++ b/board/elm/board.c
@@ -298,10 +298,8 @@ int board_set_active_charge_port(int charge_port)
*/
if (!initialized &&
charge_port == CHARGE_PORT_NONE &&
- charge_get_percent() < 2) {
- CPRINTS("Battery critical, don't disable charging");
+ charge_get_percent() < 2)
return -1;
- }
if (is_real_port && source) {
CPRINTF("Skip enable p%d", charge_port);