mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Let both batteries transmit CAN
This commit is contained in:
parent
6a1f3ccfa4
commit
a790b718a4
1 changed files with 8 additions and 0 deletions
|
@ -39,8 +39,16 @@ void update_values_battery() {
|
|||
battery->update_values();
|
||||
}
|
||||
|
||||
// transmit_can_battery is called once and we need to
|
||||
// call both batteries.
|
||||
void transmit_can_battery(unsigned long currentMillis) {
|
||||
battery->transmit_can(currentMillis);
|
||||
|
||||
#ifdef DOUBLE_BATTERY
|
||||
if (battery2) {
|
||||
battery2->transmit_can(currentMillis);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void handle_incoming_can_frame_battery(CAN_frame rx_frame) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue