소스 검색

Prevent ESP3D_WIFISUPPORT with non-ESP32 board (#18792)

ellensp 3 년 전
부모
커밋
6924b2deaa
No account linked to committer's email address
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      Marlin/src/inc/SanityCheck.h

+ 7
- 0
Marlin/src/inc/SanityCheck.h 파일 보기

@@ -3044,5 +3044,12 @@ static_assert(   _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
3044 3044
   #endif
3045 3045
 #endif
3046 3046
 
3047
+/**
3048
+ * Sanity check for WIFI
3049
+ */
3050
+#if ENABLED(ESP3D_WIFISUPPORT) && DISABLED(ARDUINO_ARCH_ESP32) 
3051
+  #error "ESP3D_WIFISUPPORT requires an ESP32 controller. Use WIFISUPPORT for standalone ESP3D modules."
3052
+#endif
3053
+
3047 3054
 // Misc. Cleanup
3048 3055
 #undef _TEST_PWM

Loading…
취소
저장