mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
Initial version of PDM support
This commit is contained in:
parent
01a17b8c72
commit
4cd5289929
8 changed files with 357 additions and 14 deletions
|
@ -377,8 +377,12 @@ void receive_can() { // This section checks if we have a complete CAN message i
|
|||
#ifdef SMA_CAN
|
||||
receive_can_sma(rx_frame);
|
||||
#endif
|
||||
// Charger
|
||||
#ifdef CHEVYVOLT_CHARGER
|
||||
receive_can_chevyvolt_charger(rx_frame);
|
||||
#endif
|
||||
#ifdef NISSANLEAF_CHARGER
|
||||
receive_can_nissanleaf_charger(rx_frame);
|
||||
#endif
|
||||
} else {
|
||||
//printf("New extended frame");
|
||||
|
@ -441,6 +445,9 @@ void send_can() {
|
|||
#ifdef CHEVYVOLT_CHARGER
|
||||
send_can_chevyvolt_charger();
|
||||
#endif
|
||||
#ifdef NISSANLEAF_CHARGER
|
||||
send_can_nissanleaf_charger();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef DUAL_CAN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue