IM_TWO_COILS

This commit is contained in:
rusefi 2019-10-27 16:19:59 -04:00
parent a8a0bc007a
commit be9a67e67e
1 changed files with 2 additions and 3 deletions

View File

@ -443,7 +443,6 @@ static int getIgnitionPinForIndex(int cylinderIndex DECLARE_ENGINE_PARAMETER_SUF
switch (getCurrentIgnitionMode(PASS_ENGINE_PARAMETER_SIGNATURE)) { switch (getCurrentIgnitionMode(PASS_ENGINE_PARAMETER_SIGNATURE)) {
case IM_ONE_COIL: case IM_ONE_COIL:
return 0; return 0;
break;
case IM_WASTED_SPARK: { case IM_WASTED_SPARK: {
if (CONFIG(specs.cylindersCount) == 1) { if (CONFIG(specs.cylindersCount) == 1) {
// we do not want to divide by zero // we do not want to divide by zero
@ -451,10 +450,10 @@ static int getIgnitionPinForIndex(int cylinderIndex DECLARE_ENGINE_PARAMETER_SUF
} }
return cylinderIndex % (CONFIG(specs.cylindersCount) / 2); return cylinderIndex % (CONFIG(specs.cylindersCount) / 2);
} }
break;
case IM_INDIVIDUAL_COILS: case IM_INDIVIDUAL_COILS:
return cylinderIndex; return cylinderIndex;
break; case IM_TWO_COILS:
return cylinderIndex % 2;
default: default:
warning(CUSTOM_OBD_IGNITION_MODE, "unsupported ignitionMode %d in getIgnitionPinForIndex()", engineConfiguration->ignitionMode); warning(CUSTOM_OBD_IGNITION_MODE, "unsupported ignitionMode %d in getIgnitionPinForIndex()", engineConfiguration->ignitionMode);