From e5f9cfd5b6737f8c3cc9ada870c8b72621bcf42a Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 5 Nov 2022 18:31:38 +0100 Subject: [PATCH] Add ESP32 variant display in update page. --- wled00/wled.h | 2 +- wled00/xml.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wled00/wled.h b/wled00/wled.h index 66fdce38e..44327176d 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2211020 +#define VERSION 2211050 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG diff --git a/wled00/xml.cpp b/wled00/xml.cpp index b68852018..a9c8907b2 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -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("
(ESP32-C3")); + #elif defined(CONFIG_IDF_TARGET_ESP32S3) + oappend(SET_F("
(ESP32-S3")); + #elif defined(CONFIG_IDF_TARGET_ESP32S2) + oappend(SET_F("
(ESP32-S2")); + #elif defined(ARDUINO_ARCH_ESP32) oappend(SET_F("
(ESP32")); #else oappend(SET_F("
(ESP8266"));