Skip to content

Commit

Permalink
fix: more memory for onBattery live data
Browse files Browse the repository at this point in the history
the allocated memory to create the JSON with onBattery-specific totals
for the live view was too little to contain all values, which are sent
regularly.
  • Loading branch information
schlimmchen committed Mar 10, 2024
1 parent c42d688 commit c46980d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebApi_ws_live.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void WebApiWsLiveClass::generateOnBatteryJsonResponse(JsonVariant& root, bool al

void WebApiWsLiveClass::sendOnBatteryStats()
{
DynamicJsonDocument root(512);
DynamicJsonDocument root(1024);
if (!Utils::checkJsonAlloc(root, __FUNCTION__, __LINE__)) { return; }

JsonVariant var = root;
Expand Down

0 comments on commit c46980d

Please sign in to comment.