change the charger full condition
with tolerance
Change-Id: Ia544309b142b9fc6e879c7f40701c2d303700e3d
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/
1329520
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
}
/* 2. Full charged check */
- if ((battery->current_now >= 0 && battery->current_now <
+ if ((battery->current_now >= (-10) && battery->current_now <
battery->pdata->charging_current[
battery->cable_type].full_check_current) &&
(battery->voltage_avg > battery->pdata->chg_full_vcell)) {