diff --git a/Marlin/src/feature/tmc_util.h b/Marlin/src/feature/tmc_util.h index 63312f7581..8ea7a862b9 100644 --- a/Marlin/src/feature/tmc_util.h +++ b/Marlin/src/feature/tmc_util.h @@ -23,9 +23,15 @@ #ifndef _TMC_UTIL_H_ #define _TMC_UTIL_H_ -#include +#include "../inc/MarlinConfigPre.h" -#include "../inc/MarlinConfig.h" +#if ENABLED(HAVE_TMC2130) + #include +#endif + +#if ENABLED(HAVE_TMC2208) + #include +#endif extern bool report_tmc_status;