better ignition_voltage_detected message

This commit is contained in:
Andrei 2021-10-08 11:58:11 +03:00 committed by rusefillc
parent 37ef7302d4
commit 22785078ef
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. // and we want to turn on the main relay only when 100% sure.
if ((Sensor::get(SensorType::BatteryVoltage).value_or(0) > vBattThresholdOn) && !isInShutdownMode()) { if ((Sensor::get(SensorType::BatteryVoltage).value_or(0) > vBattThresholdOn) && !isInShutdownMode()) {
ignitionOnTimeNt = getTimeNowNt(); ignitionOnTimeNt = getTimeNowNt();
stopEngineRequestTimeNt = 0; efiPrintf("Ignition voltage detected!");
efiPrintf("Ignition voltage detected! Cancel the engine shutdown!"); if (stopEngineRequestTimeNt != 0) {
efiPrintf("Cancel the engine shutdown!");
stopEngineRequestTimeNt = 0;
}
} }
} }
#endif /* EFI_MAIN_RELAY_CONTROL */ #endif /* EFI_MAIN_RELAY_CONTROL */