From 6ce02ccb63c205047c68f05dc8384938b5d1ef2c Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 1 Nov 2023 16:37:33 -0400 Subject: [PATCH] ASE and CL Ignition fix #5678 --- firmware/controllers/algo/engine2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/algo/engine2.cpp b/firmware/controllers/algo/engine2.cpp index 890dc12965..b21cf1c3dd 100644 --- a/firmware/controllers/algo/engine2.cpp +++ b/firmware/controllers/algo/engine2.cpp @@ -126,7 +126,7 @@ void EngineState::periodicFastCallback() { ); // for compatibility reasons, apply only if the factor is greater than unity (only allow adding fuel) // if the engine run time is past the last bin, disable ASE in case the table is filled with values more than 1.0, helps with compatibility - if ((m_postCrankingFactor < 1.0f) || (engine->fuelComputer.running.timeSinceCrankingInSecs > engineConfiguration->postCrankingDurationBins[efi::size(engineConfiguration->postCrankingDurationBins)-1])) { + if ((m_postCrankingFactor < 1.0f) || (engine->rpmCalculator.getRevolutionCounterSinceStart() > engineConfiguration->postCrankingDurationBins[efi::size(engineConfiguration->postCrankingDurationBins)-1])) { m_postCrankingFactor = 1.0f; } engine->fuelComputer.running.postCrankingFuelCorrection = m_postCrankingFactor;