mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Update TESLA-BATTERY.cpp
This commit is contained in:
parent
fc90d3eca9
commit
22c8d7dbe3
1 changed files with 2 additions and 2 deletions
|
@ -1229,8 +1229,8 @@ the first, for a few cycles, then stop all messages which causes the contactor
|
||||||
}
|
}
|
||||||
#endif //defined(TESLA_MODEL_SX_BATTERY) || defined(EXP_TESLA_BMS_DIGITAL_HVIL)
|
#endif //defined(TESLA_MODEL_SX_BATTERY) || defined(EXP_TESLA_BMS_DIGITAL_HVIL)
|
||||||
|
|
||||||
//Send 30ms message
|
//Send 30ms message
|
||||||
if (currentMillis - previousMillis30 >= INTERVAL_30_MS) {
|
if (currentMillis - previousMillis30 >= INTERVAL_30_MS) {
|
||||||
// Check if sending of CAN messages has been delayed too much.
|
// Check if sending of CAN messages has been delayed too much.
|
||||||
if ((currentMillis - previousMillis30 >= INTERVAL_30_MS_DELAYED) && (currentMillis > BOOTUP_TIME)) {
|
if ((currentMillis - previousMillis30 >= INTERVAL_30_MS_DELAYED) && (currentMillis > BOOTUP_TIME)) {
|
||||||
set_event(EVENT_CAN_OVERRUN, (currentMillis - previousMillis30));
|
set_event(EVENT_CAN_OVERRUN, (currentMillis - previousMillis30));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue