Restore known-good BMS connection behavior

This commit is contained in:
2026-06-04 19:58:55 -06:00
parent 330dd7cce6
commit 83254494fb
2 changed files with 7 additions and 25 deletions
@@ -471,10 +471,14 @@ void buildStatusDocument(JsonDocument& doc) {
} else {
if (appConfig.bms.enabled && appConfig.bms.address.length() > 0) {
battery["source"] = "jbd_bms";
} else {
if (appConfig.bms.enabled && appConfig.bms.address.length() > 0) {
battery["source"] = "jbd_bms";
} else {
battery["source"] = "unconfigured";
}
}
}
battery["connected"] = false;
battery["soc"] = 0;
battery["voltage"] = 0;