From dc8230bf2e60d9fd88c8ef3c03db566dd54deda2 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 11 Sep 2022 00:19:32 +0200 Subject: [PATCH] arch = ESP.getChipModel() rely on ESP.getChipModel() for new MCUs- --- wled00/json.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index bbd81373..89e683df 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -675,7 +675,11 @@ void serializeInfo(JsonObject root) wifi_info[F("txPower")] = (int) WiFi.getTxPower(); wifi_info[F("sleep")] = (bool) WiFi.getSleep(); #endif - root[F("arch")] = "esp32"; + #if !defined(CONFIG_IDF_TARGET_ESP32C2) && !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32S3) + root[F("arch")] = "esp32"; + #else + root[F("arch")] = ESP.getChipModel(); + #endif root[F("core")] = ESP.getSdkVersion(); //root[F("maxalloc")] = ESP.getMaxAllocHeap(); #ifdef WLED_DEBUG