Skip to content

Commit

Permalink
chargig limit typos fxed
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Aug 13, 2023
1 parent d8e1d55 commit 439348c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/driver/drv_chargingLimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,20 @@ void ChargingLimit_AppendInformationToHTTPIndexPage(http_request_t* request)

type = CHANNEL_GetType(chl_targetChannel);

hprintf255(request, "<h2>Charging limit on channel %i: Status %s, Time: - %i of %i seconds",
hprintf255(request, "<h2>Charging limit on channel %i: Status: %s, Time: %i of %i seconds",
chl_targetChannel, rStr,
chl_timeLeftSeconds, chl_timeMax);

if (type == ChType_EnergyTotal_kWh_div100) {
hprintf255(request, ", Power %.2f of %.2f kWh</h2>",
hprintf255(request, ", Power: %.2f of %.2f kWh</h2>",
chl_lastDelteForDisplay*0.01f, chl_targetChannelMaxDelta*0.01f);
}
else if (type == ChType_EnergyTotal_kWh_div1000) {
hprintf255(request, ", Power %.2f of %.2f kWh</h2>",
hprintf255(request, ", Power: %.2f of %.2f kWh</h2>",
chl_lastDelteForDisplay*0.001f, chl_targetChannelMaxDelta*0.001f);
}
else {
hprintf255(request, ", Power %i of %i </h2>",
hprintf255(request, ", Power: %i of %i </h2>",
chl_lastDelteForDisplay, chl_targetChannelMaxDelta);
}

Expand Down

0 comments on commit 439348c

Please sign in to comment.