We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5374ce8 + 489a20c commit 72748b7Copy full SHA for 72748b7
baseboard/fwk/battery.c
@@ -401,8 +401,7 @@ static enum ec_status cmd_charging_limit_control(struct host_cmd_handler_args *a
401
charging_maximum_level = charging_maximum_level | CHG_LIMIT_OVERRIDE;
402
403
if (p->modes & CHG_LIMIT_GET_LIMIT) {
404
- system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &charging_maximum_level);
405
- r->max_percentage = charging_maximum_level;
+ system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &r->max_percentage);
406
args->response_size = sizeof(*r);
407
}
408
0 commit comments