code cleaning

This commit is contained in:
proddy
2025-10-05 15:33:01 +02:00
parent 0c6aef5b60
commit d8aafdbfd4

View File

@@ -108,7 +108,7 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject input) {
emsesp::EMSESP::system_.refreshHeapMem(); emsesp::EMSESP::system_.refreshHeapMem();
// output json buffer // output json buffer
auto response = new AsyncJsonResponse(false); auto response = new AsyncJsonResponse();
// add more mem if needed - won't be needed in ArduinoJson 7 // add more mem if needed - won't be needed in ArduinoJson 7
// while (!response->getSize()) { // while (!response->getSize()) {
@@ -121,7 +121,6 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject input) {
// call command // call command
uint8_t return_code = Command::process(request->url().c_str(), is_admin, input, output); uint8_t return_code = Command::process(request->url().c_str(), is_admin, input, output);
if (return_code != CommandRet::OK) { if (return_code != CommandRet::OK) {
api_fails_++; api_fails_++;
} }