diff --git a/FluidNC/src/Motors/TMC2130Driver.cpp b/FluidNC/src/Motors/TMC2130Driver.cpp index 62d2855a0..52ab6e19c 100644 --- a/FluidNC/src/Motors/TMC2130Driver.cpp +++ b/FluidNC/src/Motors/TMC2130Driver.cpp @@ -12,6 +12,8 @@ namespace MotorDrivers { void TMC2130Driver::init() { + TrinamicSpiDriver::init(); + uint8_t cs_id; cs_id = setupSPI(); diff --git a/FluidNC/src/Motors/TMC5160Driver.cpp b/FluidNC/src/Motors/TMC5160Driver.cpp index 6d3744e1b..226e67cf2 100644 --- a/FluidNC/src/Motors/TMC5160Driver.cpp +++ b/FluidNC/src/Motors/TMC5160Driver.cpp @@ -8,6 +8,8 @@ namespace MotorDrivers { void TMC5160Driver::init() { + TrinamicSpiDriver::init(); + uint8_t cs_id; cs_id = setupSPI(); diff --git a/FluidNC/src/Motors/TMC5160ProDriver.cpp b/FluidNC/src/Motors/TMC5160ProDriver.cpp index ed1956b25..7a08cbb7f 100644 --- a/FluidNC/src/Motors/TMC5160ProDriver.cpp +++ b/FluidNC/src/Motors/TMC5160ProDriver.cpp @@ -8,6 +8,8 @@ namespace MotorDrivers { void TMC5160ProDriver::init() { + TrinamicSpiDriver::init(); + uint8_t cs_id; cs_id = setupSPI(); @@ -26,7 +28,9 @@ namespace MotorDrivers { TrinamicBase::config_motor(); } - bool TMC5160ProDriver::test() { return checkVersion(0x30, tmc5160->version()); } + bool TMC5160ProDriver::test() { + return checkVersion(0x30, tmc5160->version()); + } void TMC5160ProDriver::set_registers(bool isHoming) { if (_has_errors) {