small changes

This commit is contained in:
Stefan Ostermann 2025-07-28 21:20:57 +02:00
parent 78167ecc20
commit be288f6a5a
1 changed files with 2 additions and 2 deletions

View File

@ -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;