diff --git a/baseboard/fwk/battery.c b/baseboard/fwk/battery.c index 7b0f55ba5d..cea73e3195 100644 --- a/baseboard/fwk/battery.c +++ b/baseboard/fwk/battery.c @@ -401,8 +401,7 @@ static enum ec_status cmd_charging_limit_control(struct host_cmd_handler_args *a charging_maximum_level = charging_maximum_level | CHG_LIMIT_OVERRIDE; if (p->modes & CHG_LIMIT_GET_LIMIT) { - system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &charging_maximum_level); - r->max_percentage = charging_maximum_level; + system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &r->max_percentage); args->response_size = sizeof(*r); }