We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3ddf40 + 72748b7 commit f6d6b92Copy full SHA for f6d6b92
baseboard/fwk/battery.c
@@ -476,8 +476,7 @@ static enum ec_status cmd_charging_limit_control(struct host_cmd_handler_args *a
476
charging_maximum_level = charging_maximum_level | CHG_LIMIT_OVERRIDE;
477
478
if (p->modes & CHG_LIMIT_GET_LIMIT) {
479
- system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &charging_maximum_level);
480
- r->max_percentage = charging_maximum_level;
+ system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &r->max_percentage);
481
args->response_size = sizeof(*r);
482
}
483
0 commit comments