Browse Source

Make spi.h inclusion conditional

spi.h is only needed if HEATER_0_USES_MAX6675 is defined, so making its inclusion conditional on HEATER_0_USES_MAX6675 being defined.
benlye 7 years ago
parent
commit
0a2f60fab4
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/temperature.cpp

+ 5
- 1
Marlin/temperature.cpp View File

@@ -29,7 +29,11 @@
29 29
 #include "temperature.h"
30 30
 #include "thermistortables.h"
31 31
 #include "language.h"
32
-#include "spi.h"
32
+
33
+#if ENABLED(HEATER_0_USES_MAX6675)
34
+  #include "spi.h"
35
+#endif
36
+
33 37
 #if ENABLED(BABYSTEPPING)
34 38
   #include "stepper.h"
35 39
 #endif

Loading…
Cancel
Save