Skip to content

Commit 34d7fca

Browse files
thisiskeithbthinkyhead
authored andcommitted
🐛 Fix I/J/K chopper timing (MarlinFirmware#26736)
Followup to MarlinFirmware#19112
1 parent 74bf682 commit 34d7fca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Marlin/src/module/stepper/trinamic.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void reset_trinamic_drivers();
250250
static constexpr chopper_timing_t chopper_timing_I = CHOPPER_TIMING_I;
251251
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
252252
#define I_ENABLE_INIT() NOOP
253-
#define I_ENABLE_WRITE(STATE) stepperI.toff((STATE)==I_ENABLE_ON ? chopper_timing.toff : 0)
253+
#define I_ENABLE_WRITE(STATE) stepperI.toff((STATE)==I_ENABLE_ON ? chopper_timing_I.toff : 0)
254254
#define I_ENABLE_READ() stepperI.isEnabled()
255255
#endif
256256
#if AXIS_HAS_SQUARE_WAVE(I)
@@ -264,7 +264,7 @@ void reset_trinamic_drivers();
264264
static constexpr chopper_timing_t chopper_timing_J = CHOPPER_TIMING_J;
265265
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
266266
#define J_ENABLE_INIT() NOOP
267-
#define J_ENABLE_WRITE(STATE) stepperJ.toff((STATE)==J_ENABLE_ON ? chopper_timing.toff : 0)
267+
#define J_ENABLE_WRITE(STATE) stepperJ.toff((STATE)==J_ENABLE_ON ? chopper_timing_J.toff : 0)
268268
#define J_ENABLE_READ() stepperJ.isEnabled()
269269
#endif
270270
#if AXIS_HAS_SQUARE_WAVE(J)
@@ -278,7 +278,7 @@ void reset_trinamic_drivers();
278278
static constexpr chopper_timing_t chopper_timing_K = CHOPPER_TIMING_K;
279279
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
280280
#define K_ENABLE_INIT() NOOP
281-
#define K_ENABLE_WRITE(STATE) stepperK.toff((STATE)==K_ENABLE_ON ? chopper_timing.toff : 0)
281+
#define K_ENABLE_WRITE(STATE) stepperK.toff((STATE)==K_ENABLE_ON ? chopper_timing_K.toff : 0)
282282
#define K_ENABLE_READ() stepperK.isEnabled()
283283
#endif
284284
#if AXIS_HAS_SQUARE_WAVE(K)

0 commit comments

Comments
 (0)