Remove double call to generateOnBatteryJsonResponse() (#1115)
the 2nd call was added in a merge operation in April
This commit is contained in:
parent
0013b2c934
commit
5fee069c65
@ -332,8 +332,6 @@ void WebApiWsLiveClass::onLivedataStatus(AsyncWebServerRequest* request)
|
|||||||
|
|
||||||
generateOnBatteryJsonResponse(root, true);
|
generateOnBatteryJsonResponse(root, true);
|
||||||
|
|
||||||
generateOnBatteryJsonResponse(root, true);
|
|
||||||
|
|
||||||
WebApi.sendJsonResponse(request, response, __FUNCTION__, __LINE__);
|
WebApi.sendJsonResponse(request, response, __FUNCTION__, __LINE__);
|
||||||
|
|
||||||
} catch (const std::bad_alloc& bad_alloc) {
|
} catch (const std::bad_alloc& bad_alloc) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user