From 6f00f4ebefda44679ada010db375c0c5bc0deeb8 Mon Sep 17 00:00:00 2001
From: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com>
Date: Tue, 30 Jan 2024 21:00:02 -0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20I/J/K=20chopper=20timing?=
 =?UTF-8?q?=20(#26736)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Followup to #19112
---
 Marlin/src/module/stepper/trinamic.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Marlin/src/module/stepper/trinamic.h b/Marlin/src/module/stepper/trinamic.h
index 95bab7652c1..569d213e563 100644
--- a/Marlin/src/module/stepper/trinamic.h
+++ b/Marlin/src/module/stepper/trinamic.h
@@ -250,7 +250,7 @@ void reset_trinamic_drivers();
   static constexpr chopper_timing_t chopper_timing_I = CHOPPER_TIMING_I;
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)
     #define I_ENABLE_INIT() NOOP
-    #define I_ENABLE_WRITE(STATE) stepperI.toff((STATE)==I_ENABLE_ON ? chopper_timing.toff : 0)
+    #define I_ENABLE_WRITE(STATE) stepperI.toff((STATE)==I_ENABLE_ON ? chopper_timing_I.toff : 0)
     #define I_ENABLE_READ() stepperI.isEnabled()
   #endif
   #if AXIS_HAS_SQUARE_WAVE(I)
@@ -264,7 +264,7 @@ void reset_trinamic_drivers();
   static constexpr chopper_timing_t chopper_timing_J = CHOPPER_TIMING_J;
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)
     #define J_ENABLE_INIT() NOOP
-    #define J_ENABLE_WRITE(STATE) stepperJ.toff((STATE)==J_ENABLE_ON ? chopper_timing.toff : 0)
+    #define J_ENABLE_WRITE(STATE) stepperJ.toff((STATE)==J_ENABLE_ON ? chopper_timing_J.toff : 0)
     #define J_ENABLE_READ() stepperJ.isEnabled()
   #endif
   #if AXIS_HAS_SQUARE_WAVE(J)
@@ -278,7 +278,7 @@ void reset_trinamic_drivers();
   static constexpr chopper_timing_t chopper_timing_K = CHOPPER_TIMING_K;
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)
     #define K_ENABLE_INIT() NOOP
-    #define K_ENABLE_WRITE(STATE) stepperK.toff((STATE)==K_ENABLE_ON ? chopper_timing.toff : 0)
+    #define K_ENABLE_WRITE(STATE) stepperK.toff((STATE)==K_ENABLE_ON ? chopper_timing_K.toff : 0)
     #define K_ENABLE_READ() stepperK.isEnabled()
   #endif
   #if AXIS_HAS_SQUARE_WAVE(K)