From a08b880b6729d26a2f637517eb1d2c8ba1225077 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 26 Nov 2020 23:10:03 +0100 Subject: [PATCH] remove shrinktofit to help mem frag --- src/WebAPIService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebAPIService.cpp b/src/WebAPIService.cpp index bcbbe3795..4f3e6d4c4 100644 --- a/src/WebAPIService.cpp +++ b/src/WebAPIService.cpp @@ -109,7 +109,7 @@ void WebAPIService::webAPIService(AsyncWebServerRequest * request) { // if we have returned data in JSON format, send this to the WEB if (json.size()) { - doc.shrinkToFit(); + // doc.shrinkToFit(); char buffer[EMSESP_MAX_JSON_SIZE_DYN]; serializeJsonPretty(doc, buffer); request->send(200, "text/plain", buffer);