Add check if bat2 is configured

This commit is contained in:
Daniel Öster 2025-08-17 21:53:44 +03:00
parent 5888457926
commit 2f6b63afe8

View file

@ -1278,7 +1278,7 @@ String processor(const String& var) {
"causing this via Events page. Reboot required to resume operation!</span>";
}
content += "</h4></div>";
if (contactor_control_enabled_double_battery) {
if (contactor_control_enabled_double_battery && battery2) {
content += "<h4>Secondary battery contactor, state: ";
if (pwm_contactor_control) {
if (datalayer.system.status.contactors_battery2_engaged) {