diff --git a/tasmota/include/tasmota.h b/tasmota/include/tasmota.h index 9eae7a409..60ce13c13 100644 --- a/tasmota/include/tasmota.h +++ b/tasmota/include/tasmota.h @@ -138,7 +138,11 @@ const uint8_t MAX_ADCS = 1; // Max number of ESP8266 ADC pins const uint8_t MAX_SWITCHES_TXT = 8; // Max number of switches user text #endif // ESP8266 #ifdef ESP32 +#ifdef CONFIG_IDF_TARGET_ESP32C3 +const uint8_t MAX_ADCS = 5; // Max number of ESP32-C3 ADC pins (ADC2 pins are unusable with Wifi enabled) +#else // ESP32 const uint8_t MAX_ADCS = 8; // Max number of ESP32 ADC pins (ADC2 pins are unusable with Wifi enabled) +#endif // ESP32C3 const uint8_t MAX_SWITCHES_TXT = 28; // Max number of switches user text #endif // ESP32