mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Add delay
adding 3s delay to allow cell voltage min/max to be read before transmit_can to stop false under/over cell voltage events.
This commit is contained in:
parent
aadd9df470
commit
3ef5bec6e2
1 changed files with 4 additions and 3 deletions
|
@ -1226,10 +1226,11 @@ 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)
|
||||
|
||||
delay(3000) // adding 3s delay to allow cell voltage min/max to be read before transmit_can to stop false under/over cell voltage events.
|
||||
delay(
|
||||
3000) // adding 3s delay to allow cell voltage min/max to be read before transmit_can to stop false under/over cell voltage events.
|
||||
|
||||
//Send 30ms message
|
||||
if (currentMillis - previousMillis30 >= INTERVAL_30_MS) {
|
||||
//Send 30ms message
|
||||
if (currentMillis - previousMillis30 >= INTERVAL_30_MS) {
|
||||
// Check if sending of CAN messages has been delayed too much.
|
||||
if ((currentMillis - previousMillis30 >= INTERVAL_30_MS_DELAYED) && (currentMillis > BOOTUP_TIME)) {
|
||||
set_event(EVENT_CAN_OVERRUN, (currentMillis - previousMillis30));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue