From be288f6a5a5632cb8ab917da4291d5d2cf7be077 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Mon, 28 Jul 2025 21:20:57 +0200 Subject: [PATCH] small changes --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 83c1757..a3ef2fa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -529,7 +529,7 @@ String getState() if (currentNode != nullptr) jsonState["title"] = *currentNode->getCurrentPlaying(); else - jsonState["title"] = "Angehalten"; // Store in flash + jsonState["title"] = "Angehalten"; if (currentNode != nullptr) jsonState["filepath"] = currentNode->getCurrentPlayingFilePath(); @@ -544,7 +544,7 @@ String getState() jsonState["heap"] = free_heap; String output; - output.reserve(256); // Pre-allocate string buffer + output.reserve(512); // Pre-allocate string buffer serializeJson(jsonState, output); return output;