Merge pull request #491 from marckleinebudde/canfdtest

canfdtest: fix detection of own frames
pull/492/head
Marc Kleine-Budde 2024-01-17 09:00:12 +01:00 committed by GitHub
commit 78aeedf5fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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