From de65eee9229a4cea2d9be29091141941230a45f0 Mon Sep 17 00:00:00 2001 From: Token Date: Tue, 3 Sep 2024 23:24:38 +0200 Subject: [PATCH] Introduce constant for battery check --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 078c768..916f509 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,7 @@ #include "util.h" // Global objects and states +constexpr unsigned int INTERVAL_BATTERY_CHECK = 60000; FSM fsm(10); EFBoardPowerState pwrstate; @@ -239,6 +240,6 @@ void loop() { _softBrownOutHandler(); } - task_battery = millis() + 60000; + task_battery = millis() + INTERVAL_BATTERY_CHECK; } }