From 3a72767575242c4d6f2e6e6ca918a850158559e7 Mon Sep 17 00:00:00 2001 From: VR-25 <28943176+VR-25@users.noreply.github.com> Date: Mon, 4 Jul 2022 17:59:31 +0100 Subject: [PATCH] Optimize charging control loop --- install/accd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/accd.sh b/install/accd.sh index ba2ad3e..9fa9a87 100644 --- a/install/accd.sh +++ b/install/accd.sh @@ -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