mirror of https://github.com/arendst/Tasmota.git
Add better ESP32 model exclusions
This commit is contained in:
parent
eb566c3b62
commit
2d9d8fa5c2
|
@ -94,27 +94,43 @@ String EthernetMacAddress(void);
|
|||
|
||||
#ifdef ESP32
|
||||
|
||||
/*-------------------------------------------------------------------------------------------*\
|
||||
* Start ESP32 specific parameters - disable features not present in ESP32
|
||||
\*-------------------------------------------------------------------------------------------*/
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#else // Disable features not present in other ESP32 like ESP32C3, ESP32S2, ESP32S3 etc.
|
||||
#ifdef USE_ETHERNET
|
||||
#undef USE_ETHERNET // All non-ESP32 do not support ethernet
|
||||
#endif
|
||||
#endif // CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
/*-------------------------------------------------------------------------------------------*\
|
||||
* End ESP32 specific parameters
|
||||
\*-------------------------------------------------------------------------------------------*/
|
||||
/*-------------------------------------------------------------------------------------------*\
|
||||
* Start ESP32-C32 specific parameters - disable features not present in ESP32-C3
|
||||
\*-------------------------------------------------------------------------------------------*/
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32C3 // ESP32-C3
|
||||
#ifdef USE_ETHERNET
|
||||
#undef USE_ETHERNET // ESP32-C3 does not support ethernet
|
||||
#endif
|
||||
//#ifdef USE_ETHERNET
|
||||
//#undef USE_ETHERNET // ESP32-C3 does not support ethernet
|
||||
//#endif
|
||||
|
||||
#endif // CONFIG_IDF_TARGET_ESP32C3
|
||||
|
||||
/*-------------------------------------------------------------------------------------------*\
|
||||
* End ESP32-S2 specific parameters
|
||||
* End ESP32-C3 specific parameters
|
||||
\*-------------------------------------------------------------------------------------------*/
|
||||
/*-------------------------------------------------------------------------------------------*\
|
||||
* Start ESP32-S2 specific parameters - disable features not present in ESP32-S2
|
||||
\*-------------------------------------------------------------------------------------------*/
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32S2 // ESP32-S2
|
||||
#ifdef USE_ETHERNET
|
||||
#undef USE_ETHERNET // ESP32-S2 does not support ethernet
|
||||
#endif
|
||||
//#ifdef USE_ETHERNET
|
||||
//#undef USE_ETHERNET // ESP32-S2 does not support ethernet
|
||||
//#endif
|
||||
#ifdef USE_BLE_ESP32
|
||||
#undef USE_BLE_ESP32 // ESP32-S2 does not support BLE
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue