Update TESLA-BATTERY.cpp

This commit is contained in:
josiahhiggs 2024-12-29 23:02:32 +13:00
parent a0907b7ef6
commit 1bbbaacb70

View file

@ -2684,9 +2684,9 @@ the first, for a few cycles, then stop all messages which causes the contactor
unsigned long currentMillis = millis();
if (!cellvoltagesRead ) {
if (!cellvoltagesRead) {
return; //All cellvoltages not read yet, do not proceed with contactor closing
}
}
#if defined(TESLA_MODEL_SX_BATTERY) || defined(EXP_TESLA_BMS_DIGITAL_HVIL)
if ((datalayer.system.status.inverter_allows_contactor_closing) && (datalayer.battery.status.bms_status != FAULT)) {