mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Make CAN-FD work with refactor
This commit is contained in:
parent
e92f35e50b
commit
28c4bf1c7f
4 changed files with 23 additions and 34 deletions
|
@ -917,7 +917,7 @@ void transmit_can(CAN_frame_t* tx_frame, int interface) {
|
|||
#ifdef CAN_FD
|
||||
CANFDMessage MCP2518Frame;
|
||||
MCP2518Frame.id = tx_frame->MsgID;
|
||||
//MCP2518Frame.ext = false; //TODO: Howto handle this?
|
||||
MCP2518Frame.ext = tx_frame->FIR.B.FF;
|
||||
MCP2518Frame.len = tx_frame->FIR.B.DLC;
|
||||
for (uint8_t i = 0; i < MCP2518Frame.len; i++) {
|
||||
MCP2518Frame.data[i] = tx_frame->data.u8[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue