Add ESP32 variant display in update page.

This commit is contained in:
Blaz Kristan
2022-11-05 18:31:38 +01:00
parent edd487c1f4
commit e5f9cfd5b6
2 changed files with 8 additions and 2 deletions

View File

@@ -698,7 +698,13 @@ void getSettingsJS(byte subPage, char* dest)
sappends('m',SET_F("(\"sip\")[0]"),(char*)F("WLED "));
olen -= 2; //delete ";
oappend(versionString);
#ifdef ARDUINO_ARCH_ESP32
#if defined(CONFIG_IDF_TARGET_ESP32C3)
oappend(SET_F("<br>(ESP32-C3"));
#elif defined(CONFIG_IDF_TARGET_ESP32S3)
oappend(SET_F("<br>(ESP32-S3"));
#elif defined(CONFIG_IDF_TARGET_ESP32S2)
oappend(SET_F("<br>(ESP32-S2"));
#elif defined(ARDUINO_ARCH_ESP32)
oappend(SET_F("<br>(ESP32"));
#else
oappend(SET_F("<br>(ESP8266"));