Browse Source

Fix Chopper Timing extra axis defaults (#19850)

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

Loading…
Cancel
Save