Browse Source

Fix Chopper Timing extra axis defaults (#19850)

qwewer0 3 years ago
parent
commit
c7f7f2403d
No account linked to committer's email address
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      Marlin/src/module/stepper/trinamic.h

+ 5
- 5
Marlin/src/module/stepper/trinamic.h View File

@@ -144,7 +144,7 @@ void reset_trinamic_drivers();
144 144
 #if HAS_X2_ENABLE && AXIS_IS_TMC(X2)
145 145
   extern TMC_CLASS(X2, X) stepperX2;
146 146
   #ifndef CHOPPER_TIMING_X2
147
-    #define CHOPPER_TIMING_X2 CHOPPER_TIMING_E
147
+    #define CHOPPER_TIMING_X2 CHOPPER_TIMING_X
148 148
   #endif
149 149
   static constexpr chopper_timing_t chopper_timing_X2 = CHOPPER_TIMING_X2;
150 150
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)
@@ -161,7 +161,7 @@ void reset_trinamic_drivers();
161 161
 #if HAS_Y2_ENABLE && AXIS_IS_TMC(Y2)
162 162
   extern TMC_CLASS(Y2, Y) stepperY2;
163 163
   #ifndef CHOPPER_TIMING_Y2
164
-    #define CHOPPER_TIMING_Y2 CHOPPER_TIMING_E
164
+    #define CHOPPER_TIMING_Y2 CHOPPER_TIMING_Y
165 165
   #endif
166 166
   static constexpr chopper_timing_t chopper_timing_Y2 = CHOPPER_TIMING_Y2;
167 167
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)
@@ -178,7 +178,7 @@ void reset_trinamic_drivers();
178 178
 #if HAS_Z2_ENABLE && AXIS_IS_TMC(Z2)
179 179
   extern TMC_CLASS(Z2, Z) stepperZ2;
180 180
   #ifndef CHOPPER_TIMING_Z2
181
-    #define CHOPPER_TIMING_Z2 CHOPPER_TIMING_E
181
+    #define CHOPPER_TIMING_Z2 CHOPPER_TIMING_Z
182 182
   #endif
183 183
   static constexpr chopper_timing_t chopper_timing_Z2 = CHOPPER_TIMING_Z2;
184 184
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(Z2)
@@ -195,7 +195,7 @@ void reset_trinamic_drivers();
195 195
 #if HAS_Z3_ENABLE && AXIS_IS_TMC(Z3)
196 196
   extern TMC_CLASS(Z3, Z) stepperZ3;
197 197
   #ifndef CHOPPER_TIMING_Z3
198
-    #define CHOPPER_TIMING_Z3 CHOPPER_TIMING_E
198
+    #define CHOPPER_TIMING_Z3 CHOPPER_TIMING_Z
199 199
   #endif
200 200
   static constexpr chopper_timing_t chopper_timing_Z3 = CHOPPER_TIMING_Z3;
201 201
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)
@@ -212,7 +212,7 @@ void reset_trinamic_drivers();
212 212
 #if HAS_Z4_ENABLE && AXIS_IS_TMC(Z4)
213 213
   extern TMC_CLASS(Z4, Z) stepperZ4;
214 214
   #ifndef CHOPPER_TIMING_Z4
215
-    #define CHOPPER_TIMING_Z4 CHOPPER_TIMING_E
215
+    #define CHOPPER_TIMING_Z4 CHOPPER_TIMING_Z
216 216
   #endif
217 217
   static constexpr chopper_timing_t chopper_timing_Z4 = CHOPPER_TIMING_Z4;
218 218
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)

Loading…
Cancel
Save