Skip to content

Commit fb7a6cd

Browse files
tombrazierernisv
authored andcommitted
🐛 Fix ISR_SHAPING_LOOP_CYCLES (MarlinFirmware#25335)
1 parent b5f63e7 commit fb7a6cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/module/stepper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
#define ISR_LOOP_CYCLES(R) ((ISR_LOOP_BASE_CYCLES + MIN_ISR_LOOP_CYCLES + MIN_STEPPER_PULSE_CYCLES) * (R - 1) + _MAX(MIN_ISR_LOOP_CYCLES, MIN_STEPPER_PULSE_CYCLES))
221221

222222
// Model input shaping as an extra loop call
223-
#define ISR_SHAPING_LOOP_CYCLES(R) ((TERN0(HAS_SHAPING, ISR_LOOP_BASE_CYCLES) + TERN0(INPUT_SHAPING_X, ISR_X_STEPPER_CYCLES) + TERN0(INPUT_SHAPING_Y, ISR_Y_STEPPER_CYCLES)) * (R) + (MIN_ISR_LOOP_CYCLES) * (R - 1))
223+
#define ISR_SHAPING_LOOP_CYCLES(R) TERN0(HAS_SHAPING, (R) * ((ISR_LOOP_BASE_CYCLES) + TERN0(INPUT_SHAPING_X, ISR_X_STEPPER_CYCLES) + TERN0(INPUT_SHAPING_Y, ISR_Y_STEPPER_CYCLES)))
224224

225225
// If linear advance is enabled, then it is handled separately
226226
#if ENABLED(LIN_ADVANCE)

0 commit comments

Comments
 (0)