mirror of
https://github.com/esphome/esphome.git
synced 2025-08-03 17:07:54 +00:00
remove old capacity() call
This commit is contained in:
parent
1155e9b88a
commit
8648acab5d
@ -44,8 +44,6 @@ std::string build_json(const json_build_t &f) {
|
||||
request_size = std::min(request_size * 2, free_heap);
|
||||
continue;
|
||||
}
|
||||
json_document.shrinkToFit();
|
||||
ESP_LOGV(TAG, "Size after shrink %zu bytes", json_document.capacity());
|
||||
std::string output;
|
||||
serializeJson(json_document, output);
|
||||
return output;
|
||||
|
Loading…
x
Reference in New Issue
Block a user