diff --git a/firmware/controllers/trigger/trigger_emulator_algo.cpp b/firmware/controllers/trigger/trigger_emulator_algo.cpp index 1a1c52e1b2..97ef2dcb59 100644 --- a/firmware/controllers/trigger/trigger_emulator_algo.cpp +++ b/firmware/controllers/trigger/trigger_emulator_algo.cpp @@ -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;