Set ESP32-C3 max supported ADC channels to 5

This commit is contained in:
Theo Arends 2023-07-08 18:04:13 +02:00
parent ac4c4505a5
commit 05d589f2d7
1 changed files with 4 additions and 0 deletions

View File

@ -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