appendGPIOinfo NUM_DIGITAL_PINS fix

This commit is contained in:
Ewoud
2024-02-25 11:01:03 +01:00
parent 96d275e2b9
commit d9e2fc9a99
8 changed files with 4781 additions and 4737 deletions

View File

@@ -265,16 +265,10 @@ void appendGPIOinfo() {
// add info about max. # of pins
oappend(SET_F("d.max_gpio="));
#if defined(CONFIG_IDF_TARGET_ESP32S2)
oappendi(46);
#elif defined(CONFIG_IDF_TARGET_ESP32S3)
oappendi(48);
#elif defined(CONFIG_IDF_TARGET_ESP32C3)
oappendi(21);
#elif defined(ESP32)
oappendi(39);
#if defined(ESP32)
oappendi(NUM_DIGITAL_PINS - 1);
#else //8266
oappendi(NUM_DIGITAL_PINS); //WLEDMM include pin 17 for Analog
oappendi(NUM_DIGITAL_PINS); //WLEDMM include pin 17 for Analog
#endif
oappend(SET_F(";"));