validating firing order length

This commit is contained in:
rusefi 2017-03-23 23:23:11 -04:00
parent 3648a1f651
commit 4f177769de
1 changed files with 1 additions and 1 deletions

View File

@ -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;