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;