mirror of https://github.com/arendst/Tasmota.git
Set ESP32-C3 max supported ADC channels to 5
This commit is contained in:
parent
ac4c4505a5
commit
05d589f2d7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue