Skip to content

Commit 6a0f3ff

Browse files
henrikbrixandersencarlescufi
authored andcommitted
tests: drivers: can: canfd: verify FD bit in received frames
Verify that the received frames are of the same type (CAN classic vs. CAN-FD) as the ones sent. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 3f97d11 commit 6a0f3ff

File tree

1 file changed

+1
-0
lines changed
  • tests/drivers/can/canfd/src

1 file changed

+1
-0
lines changed

tests/drivers/can/canfd/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static inline void assert_frame_equal(const struct zcan_frame *frame1,
125125
const struct zcan_frame *frame2)
126126
{
127127
zassert_equal(frame1->id_type, frame2->id_type, "ID type does not match");
128+
zassert_equal(frame1->fd, frame2->fd, "FD bit does not match");
128129
zassert_equal(frame1->rtr, frame2->rtr, "RTR bit does not match");
129130
zassert_equal(frame1->id, frame2->id, "ID does not match");
130131
zassert_equal(frame1->dlc, frame2->dlc, "DLC does not match");

0 commit comments

Comments
 (0)