Bläddra i källkod

Fix build with more than 2 Trinamic E steppers (#15329)

Jason Smith 5 år sedan
förälder
incheckning
66d0221077
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4
    4
      Marlin/src/module/stepper/trinamic.h

+ 4
- 4
Marlin/src/module/stepper/trinamic.h Visa fil

181
 
181
 
182
 // E2 Stepper
182
 // E2 Stepper
183
 #if AXIS_IS_TMC(E2)
183
 #if AXIS_IS_TMC(E2)
184
-  extern TMC_CLASS_E(1) stepperE2;
184
+  extern TMC_CLASS_E(2) stepperE2;
185
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E2)
185
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E2)
186
     #define E2_ENABLE_INIT NOOP
186
     #define E2_ENABLE_INIT NOOP
187
     #define E2_ENABLE_WRITE(STATE) stepperE2.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
187
     #define E2_ENABLE_WRITE(STATE) stepperE2.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
194
 
194
 
195
 // E3 Stepper
195
 // E3 Stepper
196
 #if AXIS_IS_TMC(E3)
196
 #if AXIS_IS_TMC(E3)
197
-  extern TMC_CLASS_E(1) stepperE3;
197
+  extern TMC_CLASS_E(3) stepperE3;
198
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E3)
198
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E3)
199
     #define E3_ENABLE_INIT NOOP
199
     #define E3_ENABLE_INIT NOOP
200
     #define E3_ENABLE_WRITE(STATE) stepperE3.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
200
     #define E3_ENABLE_WRITE(STATE) stepperE3.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
207
 
207
 
208
 // E4 Stepper
208
 // E4 Stepper
209
 #if AXIS_IS_TMC(E4)
209
 #if AXIS_IS_TMC(E4)
210
-  extern TMC_CLASS_E(1) stepperE4;
210
+  extern TMC_CLASS_E(4) stepperE4;
211
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E4)
211
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E4)
212
     #define E4_ENABLE_INIT NOOP
212
     #define E4_ENABLE_INIT NOOP
213
     #define E4_ENABLE_WRITE(STATE) stepperE4.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
213
     #define E4_ENABLE_WRITE(STATE) stepperE4.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
220
 
220
 
221
 // E5 Stepper
221
 // E5 Stepper
222
 #if AXIS_IS_TMC(E5)
222
 #if AXIS_IS_TMC(E5)
223
-  extern TMC_CLASS_E(1) stepperE5;
223
+  extern TMC_CLASS_E(5) stepperE5;
224
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E5)
224
   #if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E5)
225
     #define E5_ENABLE_INIT NOOP
225
     #define E5_ENABLE_INIT NOOP
226
     #define E5_ENABLE_WRITE(STATE) stepperE5.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
226
     #define E5_ENABLE_WRITE(STATE) stepperE5.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)

Laddar…
Avbryt
Spara