mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
TransmitMessage: Mark timestamp as extended when using CAN FD
This commit is contained in:
@@ -104,6 +104,7 @@ static std::vector<uint8_t> EncodeFromMessageCAN(std::shared_ptr<Frame> frame, c
|
|||||||
canpacket->header.BRS = canmsg->baudrateSwitch ? 1 : 0;
|
canpacket->header.BRS = canmsg->baudrateSwitch ? 1 : 0;
|
||||||
canpacket->header.ESI = canmsg->errorStateIndicator ? 1 : 0;
|
canpacket->header.ESI = canmsg->errorStateIndicator ? 1 : 0;
|
||||||
canpacket->dlc.RTR = 0;
|
canpacket->dlc.RTR = 0;
|
||||||
|
canpacket->timestamp.IsExtended = 1;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
canpacket->header.EDL = 0;
|
canpacket->header.EDL = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user