pyro/snappy: Enable battery learn-mode when battery charging not allowed

Follow reef setting.

BUG=none
BRANCH=none
TEST=make buildall

Change-Id: I5fb77cce01b3eec865f3491032ad66c05db3b1c3
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/416031
Commit-Ready: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Bruce
2016-12-02 17:32:10 +08:00
committed by chrome-bot
parent 20a54ee93d
commit c5ebdd4a04
2 changed files with 4 additions and 0 deletions

View File

@@ -232,6 +232,8 @@ int charger_profile_override(struct charge_state_data *curr)
int batt_voltage;
static int prev_batt_voltage;
charger_discharge_on_ac(!(curr->batt.flags & BATT_FLAG_WANT_CHARGE));
/*
* Determine temperature range. The five ranges are:
* < 10C

View File

@@ -160,6 +160,8 @@ int charger_profile_override(struct charge_state_data *curr)
int batt_voltage;
static int prev_batt_voltage;
charger_discharge_on_ac(!(curr->batt.flags & BATT_FLAG_WANT_CHARGE));
/*
* Determine temperature range. The five ranges are:
* < 10C