diff --git a/firmware/controllers/math/engine_math.cpp b/firmware/controllers/math/engine_math.cpp index b197fbbc79..a9dba1afc4 100644 --- a/firmware/controllers/math/engine_math.cpp +++ b/firmware/controllers/math/engine_math.cpp @@ -227,7 +227,7 @@ floatms_t getCrankingSparkDwell(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX) { } else { // technically this could be implemented via interpolate2d float angle = engineConfiguration->crankingChargeAngle; - return getOneDegreeTimeMs(rpm) * angle; + return getOneDegreeTimeMs(engine->rpmCalculator.rpmValue) * angle; } }