summaryrefslogtreecommitdiff
path: root/driver/battery/smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/battery/smart.c')
-rw-r--r--driver/battery/smart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/battery/smart.c b/driver/battery/smart.c
index 90abbe80a8..fd27e55ab9 100644
--- a/driver/battery/smart.c
+++ b/driver/battery/smart.c
@@ -395,6 +395,8 @@ void battery_get_params(struct batt_params *batt)
/* Force both to zero */
batt_new.desired_voltage = batt_new.desired_current = 0;
+ battery_compensate_params(&batt_new);
+
/* Update visible battery parameters */
memcpy(batt, &batt_new, sizeof(*batt));
}