Skip to content

Commit 573f480

Browse files
henrikbrixandersennashif
authored andcommitted
tests: drivers: can: api: canfd: use 75% for the data phase sample point
Use a sample point of 75% for the data phase timing to match the bitrate of 1Mbit/s. Fixes: #100615 Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent f7786bb commit 573f480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ ZTEST_USER(canfd, test_set_timing_data_while_started)
527527
struct can_timing timing = { 0 };
528528
int err;
529529

530-
err = can_calc_timing_data(can_dev, &timing, TEST_BITRATE_3, TEST_SAMPLE_POINT);
530+
err = can_calc_timing_data(can_dev, &timing, TEST_BITRATE_3, TEST_SAMPLE_POINT_2);
531531
zassert_true(err >= 0, "failed to calculate data timing (err %d)", err);
532532
zassert_true(err <= CONFIG_CAN_SAMPLE_POINT_MARGIN, "sample point error %d too large", err);
533533

0 commit comments

Comments
 (0)