Skip to content
Snippets Groups Projects
Commit 66d02210 authored by Jason Smith's avatar Jason Smith Committed by Scott Lahteine
Browse files

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

parent 9c288a68
Branches
Tags
No related merge requests found
......@@ -181,7 +181,7 @@ void reset_trinamic_drivers();
// E2 Stepper
#if AXIS_IS_TMC(E2)
extern TMC_CLASS_E(1) stepperE2;
extern TMC_CLASS_E(2) stepperE2;
#if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E2)
#define E2_ENABLE_INIT NOOP
#define E2_ENABLE_WRITE(STATE) stepperE2.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
......@@ -194,7 +194,7 @@ void reset_trinamic_drivers();
// E3 Stepper
#if AXIS_IS_TMC(E3)
extern TMC_CLASS_E(1) stepperE3;
extern TMC_CLASS_E(3) stepperE3;
#if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E3)
#define E3_ENABLE_INIT NOOP
#define E3_ENABLE_WRITE(STATE) stepperE3.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
......@@ -207,7 +207,7 @@ void reset_trinamic_drivers();
// E4 Stepper
#if AXIS_IS_TMC(E4)
extern TMC_CLASS_E(1) stepperE4;
extern TMC_CLASS_E(4) stepperE4;
#if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E4)
#define E4_ENABLE_INIT NOOP
#define E4_ENABLE_WRITE(STATE) stepperE4.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
......@@ -220,7 +220,7 @@ void reset_trinamic_drivers();
// E5 Stepper
#if AXIS_IS_TMC(E5)
extern TMC_CLASS_E(1) stepperE5;
extern TMC_CLASS_E(5) stepperE5;
#if ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E5)
#define E5_ENABLE_INIT NOOP
#define E5_ENABLE_WRITE(STATE) stepperE5.toff((STATE)==E_ENABLE_ON ? chopper_timing.toff : 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment