From 4f177769dea90b20ebd1d86d417805431cb1be5b Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 23 Mar 2017 23:23:11 -0400 Subject: [PATCH] validating firing order length --- firmware/controllers/math/engine_math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/math/engine_math.cpp b/firmware/controllers/math/engine_math.cpp index 58e84a1a22..9bce33da3e 100644 --- a/firmware/controllers/math/engine_math.cpp +++ b/firmware/controllers/math/engine_math.cpp @@ -374,7 +374,7 @@ static int getFiringOrderLength(DECLARE_ENGINE_PARAMETER_F) { */ int getCylinderId(int index DECLARE_ENGINE_PARAMETER_S) { - const int foLength = getFiringOrderLength(PASS_ENGINE_PARAMETER); + const int foLength = getFiringOrderLength(PASS_ENGINE_PARAMETER_F); if (engineConfiguration->specs.cylindersCount != foLength) { warning(CUSTOM_OBD_WRONG_FIRING_ORDER, "Wrong firing order %d/%d", engineConfiguration->specs.cylindersCount, foLength); return 1;