Skip to content

Commit

Permalink
修复充满电后cpu占用率高的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chase535 authored Sep 8, 2023
1 parent 13f4935 commit 85089af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions accurate_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ int main(int argc, char *argv[])
read_file(argv[1], battery, sizeof(battery));
charge_full=atoi(battery);
set_value("/sys/class/power_supply/battery/capacity", "100");
sleep(5);
continue;
}
if(strcmp(argv[1], "/sys/class/power_supply/bms/real_capacity") == 0)
Expand Down

0 comments on commit 85089af

Please sign in to comment.