mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
Fix code formatting.
This commit is contained in:
parent
437efe1aa4
commit
9ddf83ceb8
1 changed files with 2 additions and 1 deletions
|
@ -1536,7 +1536,8 @@ void transmit_can_battery() {
|
|||
|
||||
if (currentMillis - previousMillis10ms >= INTERVAL_10_MS) {
|
||||
// Check if sending of CAN messages has been delayed too much.
|
||||
if ((currentMillis - previousMillis10ms >= INTERVAL_10_MS_DELAYED) && (currentMillis > BOOTUP_TIME) && previousMillis10ms > 0) {
|
||||
if ((currentMillis - previousMillis10ms >= INTERVAL_10_MS_DELAYED) && (currentMillis > BOOTUP_TIME) &&
|
||||
previousMillis10ms > 0) {
|
||||
set_event(EVENT_CAN_OVERRUN, (currentMillis - previousMillis10ms));
|
||||
} else {
|
||||
clear_event(EVENT_CAN_OVERRUN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue