Parcourir la 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 il y a 7 ans
Parent
révision
0a2f60fab4
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5
    1
      Marlin/temperature.cpp

+ 5
- 1
Marlin/temperature.cpp Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer