-S2: slightly reduced static JSON buffer size

This commit is contained in:
Frank
2023-08-28 12:53:52 +02:00
parent 5cf33b116b
commit 5e0dbfc285

View File

@@ -422,7 +422,11 @@
#else
#if defined(BOARD_HAS_PSRAM) && (defined(WLED_USE_PSRAM) || defined(WLED_USE_PSRAM_JSON))
#if defined(ARDUINO_ARCH_ESP32S2) || defined(ARDUINO_ARCH_ESP32C3)
#define JSON_BUFFER_SIZE 48000 // WLEDMM
#if defined(ARDUINO_ARCH_ESP32C3)
#define JSON_BUFFER_SIZE 48000 // WLEDMM - max 48KB on -C3 with PSRAM
#else
#define JSON_BUFFER_SIZE 42000 // WLEDMM - max 42KB on -S2 with PSRAM
#endif
#else
#define JSON_BUFFER_SIZE 56000 // WLEDMM (was 60000) slightly reduced to avoid build error "region dram0_0_seg overflowed"
#endif