diff --git a/Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/TMC2660.cpp b/Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/TMC2660.cpp index ed1dfd3851..2f60bf3546 100644 --- a/Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/TMC2660.cpp +++ b/Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/TMC2660.cpp @@ -895,4 +895,6 @@ inline void TMC26XStepper::send262(uint32_t datagram) { driver_status_result = i_datagram; } +#endif // HAS_DRIVER(TMC2660) + #endif // STM32GENERIC && STM32F7