Platformio: Refactor PSRAM, S3 and 8266 entries

package.json: -mmod -> _MM

platformio.ini: refactored:
   esp32mdev_PSRAM -> min_esp32_4MB_PSRAM
  esp32s3-mdev -> min_esp32S3_8MB (compile error!)
  esp8266mdev -> min_esp8266_4MB (link error!)

(using extends)

json.cpp: getMinFreeHeap not for esp8266
This commit is contained in:
Ewoud
2022-10-30 10:40:35 +01:00
parent 305c9c5566
commit 0474be3069
4 changed files with 61 additions and 42 deletions

View File

@@ -783,7 +783,10 @@ void serializeInfo(JsonObject root)
#endif
root[F("freeheap")] = ESP.getFreeHeap();
root[F("minfreeheap")] = ESP.getMinFreeHeap();
//WLEDSR: conditional on esp32
#if defined(ARDUINO_ARCH_ESP32)
root[F("minfreeheap")] = ESP.getMinFreeHeap();
#endif
#if defined(ARDUINO_ARCH_ESP32) && defined(WLED_USE_PSRAM) && defined(BOARD_HAS_PSRAM)
if (psramFound()) {
root[F("tpram")] = ESP.getPsramSize(); //WLEDSR