only:todo Timer

This commit is contained in:
rusefillc 2023-06-13 21:33:28 -04:00
parent 44ed1c2fba
commit 3c09d6b28e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,6 @@ static void onStartStopButtonToggle() {
}
}
void slowStartStopButtonCallback() {
bool startStopState = startStopButtonDebounce.readPinEvent();
@ -77,6 +76,7 @@ void slowStartStopButtonCallback() {
}
}
// todo: migrate to 'Timer' class
if (getTimeNowNt() - engine->startStopStateLastPushTime > NT_PER_SECOND * engineConfiguration->startCrankingDuration) {
bool wasStarterEngaged = enginePins.starterControl.getAndSet(0);
if (wasStarterEngaged) {