From 0a2f60fab48baea6748facc0f4ade2f71abaf655 Mon Sep 17 00:00:00 2001 From: benlye Date: Sat, 15 Apr 2017 16:22:42 +0100 Subject: [PATCH] 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. --- Marlin/temperature.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index ce95eaadf..0155a00d5 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -29,7 +29,11 @@ #include "temperature.h" #include "thermistortables.h" #include "language.h" -#include "spi.h" + +#if ENABLED(HEATER_0_USES_MAX6675) + #include "spi.h" +#endif + #if ENABLED(BABYSTEPPING) #include "stepper.h" #endif