From 820eeff595ddd1748cf5c61932bab74b92670f75 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Tue, 18 Oct 2022 13:27:41 +0900 Subject: [PATCH] universal7885: parts-aidl: No need to set the bool every 5s --- .../apps/aidl-support/parts/default/SmartCharge.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/universal7885-common/apps/aidl-support/parts/default/SmartCharge.cpp b/universal7885-common/apps/aidl-support/parts/default/SmartCharge.cpp index 5b812ae..2a692b8 100644 --- a/universal7885-common/apps/aidl-support/parts/default/SmartCharge.cpp +++ b/universal7885-common/apps/aidl-support/parts/default/SmartCharge.cpp @@ -34,6 +34,7 @@ void SmartCharge::battery_monitor(void) { kTookAction = true; restart_stat += 1; } else { + if (!kTookAction) goto sleep; kTookAction = false; } sleep: