소스 검색

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…
취소
저장