small changes
This commit is contained in:
parent
78167ecc20
commit
be288f6a5a
|
|
@ -529,7 +529,7 @@ String getState()
|
||||||
if (currentNode != nullptr)
|
if (currentNode != nullptr)
|
||||||
jsonState["title"] = *currentNode->getCurrentPlaying();
|
jsonState["title"] = *currentNode->getCurrentPlaying();
|
||||||
else
|
else
|
||||||
jsonState["title"] = "Angehalten"; // Store in flash
|
jsonState["title"] = "Angehalten";
|
||||||
|
|
||||||
if (currentNode != nullptr)
|
if (currentNode != nullptr)
|
||||||
jsonState["filepath"] = currentNode->getCurrentPlayingFilePath();
|
jsonState["filepath"] = currentNode->getCurrentPlayingFilePath();
|
||||||
|
|
@ -544,7 +544,7 @@ String getState()
|
||||||
jsonState["heap"] = free_heap;
|
jsonState["heap"] = free_heap;
|
||||||
|
|
||||||
String output;
|
String output;
|
||||||
output.reserve(256); // Pre-allocate string buffer
|
output.reserve(512); // Pre-allocate string buffer
|
||||||
serializeJson(jsonState, output);
|
serializeJson(jsonState, output);
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue