Skip to content

Commit

Permalink
Merge pull request #7 from DHowett/dh/bug/6
Browse files Browse the repository at this point in the history
Avoid resetting charge_max_level during CHG_LIMIT_GET_LIMIT
  • Loading branch information
kiram9 authored May 26, 2023
2 parents 5374ce8 + 489a20c commit 72748b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions baseboard/fwk/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 72748b7

Please sign in to comment.