Add skeleton for SOFAR can

This commit is contained in:
Daniel 2023-10-25 23:46:41 +03:00
parent a3c1f4da27
commit dd1efb8405
5 changed files with 164 additions and 1 deletions

View file

@ -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();