summaryrefslogtreecommitdiff
path: root/common/ocpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/ocpc.c')
-rw-r--r--common/ocpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/ocpc.c b/common/ocpc.c
index 3bc2a265d3..d63e6f8793 100644
--- a/common/ocpc.c
+++ b/common/ocpc.c
@@ -379,6 +379,7 @@ int ocpc_config_secondary_charger(int *desired_input_current,
if (batt.desired_voltage) {
if (((batt.voltage < batt_info->voltage_min) ||
((batt.voltage < batt_info->voltage_normal) &&
+ (current_ma >= 0) &&
(current_ma <= batt_info->precharge_current))) &&
(ph != PHASE_PRECHARGE)) {
/*