We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5452515 commit fa84901Copy full SHA for fa84901
1 file changed
board/hx20/battery.c
@@ -363,9 +363,7 @@ static enum ec_status cmd_charging_limit_control(struct host_cmd_handler_args *a
363
charging_maximum_level = charging_maximum_level | CHG_LIMIT_OVERRIDE;
364
365
if (p->modes & CHG_LIMIT_GET_LIMIT) {
366
- uint8_t max = 0;
367
- system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &max);
368
- r->max_percentage = max;
+ system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &r->max_percentage);
369
args->response_size = sizeof(*r);
370
}
371
0 commit comments