|
@@ -212,7 +212,7 @@ static int ds2760_battery_read_status(struct ds2760_device_info *di)
|
|
if (di->rem_capacity > 100)
|
|
if (di->rem_capacity > 100)
|
|
di->rem_capacity = 100;
|
|
di->rem_capacity = 100;
|
|
|
|
|
|
- if (di->current_uA >= 100L)
|
|
|
|
|
|
+ if (di->current_uA < -100L)
|
|
di->life_sec = -((di->accum_current_uAh - di->empty_uAh) * 36L)
|
|
di->life_sec = -((di->accum_current_uAh - di->empty_uAh) * 36L)
|
|
/ (di->current_uA / 100L);
|
|
/ (di->current_uA / 100L);
|
|
else
|
|
else
|