Browse Source

Add TMC2208 include in tmc_util.h

Scott Lahteine 7 years ago
parent
commit
34f656decd
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      Marlin/src/feature/tmc_util.h

+ 8
- 2
Marlin/src/feature/tmc_util.h View File

@@ -23,9 +23,15 @@
23 23
 #ifndef _TMC_UTIL_H_
24 24
 #define _TMC_UTIL_H_
25 25
 
26
-#include <TMC2130Stepper.h>
26
+#include "../inc/MarlinConfigPre.h"
27 27
 
28
-#include "../inc/MarlinConfig.h"
28
+#if ENABLED(HAVE_TMC2130)
29
+  #include <TMC2130Stepper.h>
30
+#endif
31
+
32
+#if ENABLED(HAVE_TMC2208)
33
+  #include <TMC2208Stepper.h>
34
+#endif
29 35
 
30 36
 extern bool report_tmc_status;
31 37
 

Loading…
Cancel
Save