better ignition_voltage_detected message

This commit is contained in:
Andrei 2021-10-08 11:58:11 +03:00 committed by rusefillc
parent fc3b89278a
commit 99daecb7c7
1 changed files with 5 additions and 2 deletions

View File

@ -526,8 +526,11 @@ void Engine::checkShutdown() {
// and we want to turn on the main relay only when 100% sure.
if ((Sensor::get(SensorType::BatteryVoltage).value_or(0) > vBattThresholdOn) && !isInShutdownMode()) {
ignitionOnTimeNt = getTimeNowNt();
stopEngineRequestTimeNt = 0;
efiPrintf("Ignition voltage detected! Cancel the engine shutdown!");
efiPrintf("Ignition voltage detected!");
if (stopEngineRequestTimeNt != 0) {
efiPrintf("Cancel the engine shutdown!");
stopEngineRequestTimeNt = 0;
}
}
}
#endif /* EFI_MAIN_RELAY_CONTROL */