Skip to content

Commit f6d6b92

Browse files
committed
Merge branch 'hx20-hx30' of github.com:FrameworkComputer/EmbeddedController into hx20-hx30
2 parents a3ddf40 + 72748b7 commit f6d6b92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

baseboard/fwk/battery.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,7 @@ static enum ec_status cmd_charging_limit_control(struct host_cmd_handler_args *a
476476
charging_maximum_level = charging_maximum_level | CHG_LIMIT_OVERRIDE;
477477

478478
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;
479+
system_get_bbram(SYSTEM_BBRAM_IDX_CHG_MAX, &r->max_percentage);
481480
args->response_size = sizeof(*r);
482481
}
483482

0 commit comments

Comments
 (0)