start button progress #5578

only:proteus_f7
This commit is contained in:
Andrey 2023-09-22 13:01:43 -04:00
parent 6b93b3bb2c
commit f6359b0a70
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ static void disengageStarterIfNeeded() {
}
void slowStartStopButtonCallback() {
if (getTimeNowMs() < engineConfiguration->startButtonSuppressOnStartUpMs) {
// where are odd cases of start button combined with ECU power source button we do not want to crank right on start
return;
}
bool startStopState = startStopButtonDebounce.readPinEvent();
if (startStopState && !engine->engineState.startStopState) {