瀏覽代碼

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 年之前
父節點
當前提交
0a2f60fab4
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      Marlin/temperature.cpp

+ 5
- 1
Marlin/temperature.cpp 查看文件

@@ -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…
取消
儲存