summaryrefslogtreecommitdiff
path: root/board/eve/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/eve/battery.c')
-rw-r--r--board/eve/battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eve/battery.c b/board/eve/battery.c
index 0acde9259e..ea915567a6 100644
--- a/board/eve/battery.c
+++ b/board/eve/battery.c
@@ -179,7 +179,7 @@ static int charger_should_discharge_on_ac(struct charge_state_data *curr)
* To overcome this issue enable the battery learning operation
* and suspend USB charging and DC/DC converter.
*/
- if ((board_get_version() < 5) && !battery_is_cut_off() &&
+ if (!battery_is_cut_off() &&
!(curr->batt.flags & BATT_FLAG_WANT_CHARGE) &&
(curr->batt.status & STATUS_FULLY_CHARGED))
return 1;