Make CAN-FD work with refactor

This commit is contained in:
Daniel 2024-08-07 20:51:23 +03:00
parent e92f35e50b
commit 28c4bf1c7f
4 changed files with 23 additions and 34 deletions

View file

@ -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];