Remove double call to generateOnBatteryJsonResponse() (#1115)

the 2nd call was added in a merge operation in April
This commit is contained in:
Sven Sowa 2024-07-21 17:59:57 +02:00 committed by GitHub
parent 0013b2c934
commit 5fee069c65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -332,8 +332,6 @@ void WebApiWsLiveClass::onLivedataStatus(AsyncWebServerRequest* request)
generateOnBatteryJsonResponse(root, true);
generateOnBatteryJsonResponse(root, true);
WebApi.sendJsonResponse(request, response, __FUNCTION__, __LINE__);
} catch (const std::bad_alloc& bad_alloc) {