From d8aafdbfd408f05d16f5babf60e4f26230f5821f Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 5 Oct 2025 15:33:01 +0200 Subject: [PATCH] code cleaning --- src/web/WebAPIService.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/web/WebAPIService.cpp b/src/web/WebAPIService.cpp index 1c366e6bc..85f6bfbd9 100644 --- a/src/web/WebAPIService.cpp +++ b/src/web/WebAPIService.cpp @@ -108,7 +108,7 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject input) { emsesp::EMSESP::system_.refreshHeapMem(); // output json buffer - auto response = new AsyncJsonResponse(false); + auto response = new AsyncJsonResponse(); // add more mem if needed - won't be needed in ArduinoJson 7 // while (!response->getSize()) { @@ -121,7 +121,6 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject input) { // call command uint8_t return_code = Command::process(request->url().c_str(), is_admin, input, output); - if (return_code != CommandRet::OK) { api_fails_++; }