mirror of https://github.com/rusefi/rusefi.git
better ignition_voltage_detected message
(cherry picked from commit 99daecb7c7
)
This commit is contained in:
parent
c4bebf26c1
commit
88495d458d
|
@ -567,8 +567,11 @@ void Engine::checkShutdown(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
// and we want to turn on the main relay only when 100% sure.
|
||||
if ((Sensor::get(SensorType::BatteryVoltage).value_or(0) > vBattThresholdOn) && !isInShutdownMode(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||
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 */
|
||||
|
|
Loading…
Reference in New Issue