mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user