mirror of https://github.com/rusefi/rusefi.git
parent
64af23209d
commit
c4bebf26c1
|
@ -563,7 +563,9 @@ void Engine::checkShutdown(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
// if the ignition key is turned on again,
|
||||
// we cancel the shutdown mode, but only if all shutdown procedures are complete
|
||||
const float vBattThresholdOn = 8.0f;
|
||||
if ((Sensor::get(SensorType::BatteryVoltage).value_or(VBAT_FALLBACK_VALUE) > vBattThresholdOn) && !isInShutdownMode(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||
// we fallback into zero instead of VBAT_FALLBACK_VALUE because it's not safe to false-trigger the "ignition on" event,
|
||||
// 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!");
|
||||
|
|
Loading…
Reference in New Issue