esp8266_4MB_M: usermods maches max usermods, add net print,set flashsize

This commit is contained in:
Ewoud
2023-04-07 16:40:24 +02:00
parent a6e2cf0b26
commit 212126b0ad
3 changed files with 10 additions and 6 deletions

View File

@@ -898,7 +898,6 @@ void serializeInfo(JsonObject root)
#endif
root[F("lwip")] = 0; //deprecated
root[F("totalheap")] = ESP.getHeapSize(); //WLEDMM
root[F("getflash")] = ESP.getFlashChipSize(); //WLEDMM and Athom
#else
root[F("arch")] = "esp8266";
root[F("core")] = ESP.getCoreVersion();
@@ -908,6 +907,7 @@ void serializeInfo(JsonObject root)
#endif
root[F("lwip")] = LWIP_VERSION_MAJOR;
#endif
root[F("getflash")] = ESP.getFlashChipSize(); //WLEDMM and Athom, works for both ESP32 and ESP8266
root[F("freeheap")] = ESP.getFreeHeap();
//WLEDMM: conditional on esp32