validating firing order length
This commit is contained in:
parent
3648a1f651
commit
4f177769de
|
@ -374,7 +374,7 @@ static int getFiringOrderLength(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
*/
|
*/
|
||||||
int getCylinderId(int index DECLARE_ENGINE_PARAMETER_S) {
|
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) {
|
if (engineConfiguration->specs.cylindersCount != foLength) {
|
||||||
warning(CUSTOM_OBD_WRONG_FIRING_ORDER, "Wrong firing order %d/%d", engineConfiguration->specs.cylindersCount, foLength);
|
warning(CUSTOM_OBD_WRONG_FIRING_ORDER, "Wrong firing order %d/%d", engineConfiguration->specs.cylindersCount, foLength);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue