only: trigger refactoring reducing code duplication
This commit is contained in:
parent
132d9bc809
commit
6ec38dad0c
|
@ -81,16 +81,13 @@ static float getRpmMultiplier(operation_mode_e mode) {
|
|||
case FOUR_STROKE_THREE_TIMES_CRANK_SENSOR:
|
||||
case FOUR_STROKE_SIX_TIMES_CRANK_SENSOR:
|
||||
case FOUR_STROKE_TWELVE_TIMES_CRANK_SENSOR:
|
||||
return getCrankDivider(mode) / 2;
|
||||
case FOUR_STROKE_CRANK_SENSOR:
|
||||
case FOUR_STROKE_CAM_SENSOR:
|
||||
return 0.5;
|
||||
case OM_NONE:
|
||||
return 1;
|
||||
return getCrankDivider(mode) / 2.0;
|
||||
case TWO_STROKE:
|
||||
// unit test coverage still runs if the value below is changed to '2' not a great sign!
|
||||
return 1;
|
||||
case FOUR_STROKE_CRANK_SENSOR:
|
||||
return getCrankDivider(mode) / 2;
|
||||
};
|
||||
criticalError("We should not have reach this line");
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue