mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Add skeleton for SOFAR can
This commit is contained in:
parent
a3c1f4da27
commit
dd1efb8405
5 changed files with 164 additions and 1 deletions
|
@ -217,6 +217,9 @@ void setup()
|
|||
#ifdef SMA_CAN
|
||||
Serial.println("SMA CAN protocol selected");
|
||||
#endif
|
||||
#ifdef SOFAR_CAN
|
||||
Serial.println("SOFAR CAN protocol selected");
|
||||
#endif
|
||||
//Inform user what battery is used
|
||||
#ifdef BATTERY_TYPE_LEAF
|
||||
Serial.println("Nissan LEAF battery selected");
|
||||
|
@ -295,6 +298,9 @@ void handle_can()
|
|||
#endif
|
||||
#ifdef SMA_CAN
|
||||
receive_can_sma(rx_frame);
|
||||
#endif
|
||||
#ifdef SOFAR_CAN
|
||||
receive_can_sofar(rx_frame);
|
||||
#endif
|
||||
#ifdef CHADEMO
|
||||
receive_can_chademo(rx_frame);
|
||||
|
@ -320,6 +326,9 @@ void handle_can()
|
|||
#ifdef SMA_CAN
|
||||
send_can_sma();
|
||||
#endif
|
||||
#ifdef SOFAR_CAN
|
||||
send_can_sofar();
|
||||
#endif
|
||||
//Battery sending
|
||||
#ifdef BATTERY_TYPE_LEAF
|
||||
send_can_leaf_battery();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue