mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: parts-aidl: No need to set the bool every 5s
This commit is contained in:
parent
aa216cb327
commit
820eeff595
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ void SmartCharge::battery_monitor(void) {
|
||||||
kTookAction = true;
|
kTookAction = true;
|
||||||
restart_stat += 1;
|
restart_stat += 1;
|
||||||
} else {
|
} else {
|
||||||
|
if (!kTookAction) goto sleep;
|
||||||
kTookAction = false;
|
kTookAction = false;
|
||||||
}
|
}
|
||||||
sleep:
|
sleep:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue