Skip to content

Commit

Permalink
Introduce constant for battery check
Browse files Browse the repository at this point in the history
  • Loading branch information
TokenRat committed Sep 3, 2024
1 parent 5e097f0 commit de65eee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "util.h"

// Global objects and states
constexpr unsigned int INTERVAL_BATTERY_CHECK = 60000;
FSM fsm(10);
EFBoardPowerState pwrstate;

Expand Down Expand Up @@ -239,6 +240,6 @@ void loop() {
_softBrownOutHandler();
}

task_battery = millis() + 60000;
task_battery = millis() + INTERVAL_BATTERY_CHECK;
}
}

0 comments on commit de65eee

Please sign in to comment.