Skip to content

Commit

Permalink
Optimize charging control loop
Browse files Browse the repository at this point in the history
  • Loading branch information
VR-25 committed Jul 4, 2022
1 parent bc46b40 commit 3a72767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install/accd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ if ! $init; then
dumpsys batterystats --reset < /dev/null > /dev/null 2>&1 || :
rm /data/system/batterystats* 2>/dev/null || :
}
! $maxTempPause || ! not_charging || sleep ${temperature[2]}
$maxTempPause && sleep ${temperature[2]} || sleep ${loopDelay[1]}
continue
fi

# cooldown cycle
Expand Down

0 comments on commit 3a72767

Please sign in to comment.