fix engine stop for MAIN_RELAY_CONTROL

This commit is contained in:
Andrei 2021-10-08 12:03:19 +03:00 committed by rusefillc
parent 88495d458d
commit bb24b89377
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ void LimpManager::updateState(int rpm, efitick_t nowNt) {
allowFuel.clear();
}
if (!engine->isMainRelayEnabled(PASS_ENGINE_PARAMETER_SIGNATURE)) {
allowFuel.clear();
allowSpark.clear();
}
m_transientAllowInjection = allowFuel;
m_transientAllowIgnition = allowSpark;
}