Skip to content

Commit

Permalink
Fix: show AC input power of Huawei AC charger in live view
Browse files Browse the repository at this point in the history
makes the value match its description. since most values in the top part
of the live view are related to the AC side of the system, it makes
sense to use the correct value rather than to change the description.
  • Loading branch information
schlimmchen committed Apr 11, 2024
1 parent f634f58 commit 8b3a1be
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 @@ -80,7 +80,7 @@ void WebApiWsLiveClass::generateOnBatteryJsonResponse(JsonVariant& root, bool al

if (config.Huawei.Enabled) {
const RectifierParameters_t * rp = HuaweiCan.get();
addTotalField(huaweiObj, "Power", rp->output_power, "W", 2);
addTotalField(huaweiObj, "Power", rp->input_power, "W", 2);
}

if (!all) { _lastPublishHuawei = millis(); }
Expand Down

0 comments on commit 8b3a1be

Please sign in to comment.