diff --git a/Marlin/tmc_util.h b/Marlin/tmc_util.h index acd3ff8fe0..80699c2137 100644 --- a/Marlin/tmc_util.h +++ b/Marlin/tmc_util.h @@ -23,10 +23,16 @@ #ifndef _TMC_UTIL_H_ #define _TMC_UTIL_H_ -#include - #include "MarlinConfig.h" +#if ENABLED(HAVE_TMC2130) + #include +#endif + +#if ENABLED(HAVE_TMC2208) + #include +#endif + extern bool report_tmc_status; enum TMC_AxisEnum : char { TMC_X, TMC_X2, TMC_Y, TMC_Y2, TMC_Z, TMC_Z2, TMC_E0, TMC_E1, TMC_E2, TMC_E3, TMC_E4 };