Skip to content

Commit

Permalink
Prevent ESP3D_WIFISUPPORT with non-ESP32 board (#18792)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored Jul 26, 2020
1 parent f949287 commit 6924b2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -3044,5 +3044,12 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
#endif
#endif

/**
* Sanity check for WIFI
*/
#if ENABLED(ESP3D_WIFISUPPORT) && DISABLED(ARDUINO_ARCH_ESP32)
#error "ESP3D_WIFISUPPORT requires an ESP32 controller. Use WIFISUPPORT for standalone ESP3D modules."
#endif

// Misc. Cleanup
#undef _TEST_PWM

0 comments on commit 6924b2d

Please sign in to comment.