diff --git a/Software/src/devboard/webserver/webserver.cpp b/Software/src/devboard/webserver/webserver.cpp index 33b10c08..6a44cf2d 100644 --- a/Software/src/devboard/webserver/webserver.cpp +++ b/Software/src/devboard/webserver/webserver.cpp @@ -378,18 +378,16 @@ String processor(const String& var) { } content += "

Automatic contactor closing allowed:

"; content += "

Battery: "; - if(batteryAllowsContactorClosing){ + if (batteryAllowsContactorClosing) { content += ""; - } - else{ + } else { content += ""; } content += " Inverter: "; - if(inverterAllowsContactorClosing){ + if (inverterAllowsContactorClosing) { content += "

"; - } - else{ + } else { content += ""; } @@ -560,7 +558,7 @@ void onOTAEnd(bool success) { LEDcolor = BLUE; } -template // This function makes power values appear as W when under 1000, and kW when over +template // This function makes power values appear as W when under 1000, and kW when over String formatPowerValue(String label, T value, String unit, int precision) { String result = "

" + label + ": "; @@ -576,4 +574,4 @@ String formatPowerValue(String label, T value, String unit, int precision) { result += unit + "

"; return result; -} \ No newline at end of file +}