mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Rewrite with central user settings file
This commit is contained in:
parent
120fa9b5e7
commit
eeefd20970
21 changed files with 72 additions and 89 deletions
|
@ -30,7 +30,7 @@ CAN_frame_t SOLAX_100A001 = {.FIR = {.B = {.DLC = 0,.FF = CAN_frame_ext,}},.MsgI
|
|||
|
||||
void CAN_WriteFrame(CAN_frame_t* tx_frame)
|
||||
{
|
||||
if(dual_can){
|
||||
#ifdef DUAL_CAN
|
||||
CANMessage MCP2515Frame; //Struct with ACAN2515 library format, needed to use the MCP2515 library
|
||||
MCP2515Frame.id = tx_frame->MsgID;
|
||||
MCP2515Frame.ext = tx_frame->FIR.B.FF;
|
||||
|
@ -39,10 +39,9 @@ if(dual_can){
|
|||
MCP2515Frame.data[i] = tx_frame->data.u8[i];
|
||||
}
|
||||
can.tryToSend(MCP2515Frame);
|
||||
}
|
||||
else{
|
||||
#else
|
||||
ESP32Can.CANWriteFrame(tx_frame);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void update_values_can_solax()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue