Skip to content

Commit 1c6cfc3

Browse files
authored
🐛 Fix I/J/K chopper timing (#26736)
Followup to #19112
1 parent 0266e7f commit 1c6cfc3

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
@@ -248,7 +248,7 @@ void reset_trinamic_drivers();
248248
static constexpr chopper_timing_t chopper_timing_I = CHOPPER_TIMING_I;
249249
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
250250
#define I_ENABLE_INIT() NOOP
251-
#define I_ENABLE_WRITE(STATE) stepperI.toff((STATE)==I_ENABLE_ON ? chopper_timing.toff : 0)
251+
#define I_ENABLE_WRITE(STATE) stepperI.toff((STATE)==I_ENABLE_ON ? chopper_timing_I.toff : 0)
252252
#define I_ENABLE_READ() stepperI.isEnabled()
253253
#endif
254254
#if AXIS_HAS_DEDGE(I)
@@ -262,7 +262,7 @@ void reset_trinamic_drivers();
262262
static constexpr chopper_timing_t chopper_timing_J = CHOPPER_TIMING_J;
263263
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
264264
#define J_ENABLE_INIT() NOOP
265-
#define J_ENABLE_WRITE(STATE) stepperJ.toff((STATE)==J_ENABLE_ON ? chopper_timing.toff : 0)
265+
#define J_ENABLE_WRITE(STATE) stepperJ.toff((STATE)==J_ENABLE_ON ? chopper_timing_J.toff : 0)
266266
#define J_ENABLE_READ() stepperJ.isEnabled()
267267
#endif
268268
#if AXIS_HAS_DEDGE(J)
@@ -276,7 +276,7 @@ void reset_trinamic_drivers();
276276
static constexpr chopper_timing_t chopper_timing_K = CHOPPER_TIMING_K;
277277
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
278278
#define K_ENABLE_INIT() NOOP
279-
#define K_ENABLE_WRITE(STATE) stepperK.toff((STATE)==K_ENABLE_ON ? chopper_timing.toff : 0)
279+
#define K_ENABLE_WRITE(STATE) stepperK.toff((STATE)==K_ENABLE_ON ? chopper_timing_K.toff : 0)
280280
#define K_ENABLE_READ() stepperK.isEnabled()
281281
#endif
282282
#if AXIS_HAS_DEDGE(K)

0 commit comments

Comments
 (0)