Skip to content

Commit

Permalink
Copy the date when the frame gets enqueued
Browse files Browse the repository at this point in the history
  • Loading branch information
klausschuch committed Nov 27, 2024
1 parent 0cde08b commit 555cca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ls-bus-guide/demos/can-bus-simulation/src/App.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ static bool FrameQueue_Enqueue(FrameQueue* queue, const fmi3LsBusCanOperationCan
queue->Entries[queue->WritePos].Rtr = transmitOp->rtr;
queue->Entries[queue->WritePos].DataLength = transmitOp->dataLength;

memcpy(queue->Entries[queue->WritePos].Data, transmitOp->data, transmitOp->dataLength);

queue->WritePos = FRAME_QUEUE_INCREMENT(queue->WritePos, FrameQueueSize);

return true;
Expand Down

0 comments on commit 555cca9

Please sign in to comment.