Skip to content

Commit

Permalink
Merge pull request linux-can#491 from marckleinebudde/canfdtest
Browse files Browse the repository at this point in the history
canfdtest: fix detection of own frames
  • Loading branch information
marckleinebudde authored Jan 17, 2024
2 parents 8ab42e4 + 655b063 commit 78aeedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canfdtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static int can_echo_gen(void)
print_frame(rx_frame.can_id, rx_frame.data, rx_frame.len, 0);

/* own frame */
if (flags & MSG_DONTROUTE) {
if (flags & MSG_CONFIRM) {
err = compare_frame(&tx_frames[recv_tx_pos], &rx_frame, 0);
recv_tx[recv_tx_pos] = true;
recv_tx_pos++;
Expand Down

0 comments on commit 78aeedf

Please sign in to comment.