small changes
This commit is contained in:
parent
78167ecc20
commit
be288f6a5a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue