mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Update TESLA-BATTERY.cpp
This commit is contained in:
parent
a0907b7ef6
commit
1bbbaacb70
1 changed files with 17 additions and 17 deletions
|
@ -2684,9 +2684,9 @@ the first, for a few cycles, then stop all messages which causes the contactor
|
||||||
|
|
||||||
unsigned long currentMillis = millis();
|
unsigned long currentMillis = millis();
|
||||||
|
|
||||||
if (!cellvoltagesRead ) {
|
if (!cellvoltagesRead) {
|
||||||
return; //All cellvoltages not read yet, do not proceed with contactor closing
|
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 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)) {
|
if ((datalayer.system.status.inverter_allows_contactor_closing) && (datalayer.battery.status.bms_status != FAULT)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue