From 5e0dbfc285a8d475febaa48b86c461f11214d2e9 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:53:52 +0200 Subject: [PATCH] -S2: slightly reduced static JSON buffer size --- wled00/const.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wled00/const.h b/wled00/const.h index b37e835b..871d2bc4 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -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