Skip to content

Commit 93b02fd

Browse files
committed
Adding entries for H33 generated via e2studio (leads to failing tests).
Former-commit-id: eb10703
1 parent ec0a2de commit 93b02fd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

libraries/CAN/extras/test/src/test_calc_can_bit_timinig.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ SCENARIO("calc_can_bit_timing", "[calc_can_bit_timing]")
9393
THEN("")
9494
{
9595
REQUIRE(is_valid_baudrate == true);
96-
REQUIRE(baud_rate_prescaler == 4);
97-
REQUIRE(time_segment_1 == 35);
98-
REQUIRE(time_segment_2 == 11);
96+
REQUIRE(baud_rate_prescaler == 6);
97+
REQUIRE(time_segment_1 == 23);
98+
REQUIRE(time_segment_2 == 8);
9999
}
100100
}
101101
WHEN("CanBitRate::BR_250k")
@@ -105,9 +105,9 @@ SCENARIO("calc_can_bit_timing", "[calc_can_bit_timing]")
105105
THEN("")
106106
{
107107
REQUIRE(is_valid_baudrate == true);
108-
REQUIRE(baud_rate_prescaler == 2);
109-
REQUIRE(time_segment_1 == 35);
110-
REQUIRE(time_segment_2 == 11);
108+
REQUIRE(baud_rate_prescaler == 3);
109+
REQUIRE(time_segment_1 == 28);
110+
REQUIRE(time_segment_2 == 8);
111111
}
112112
}
113113
WHEN("CanBitRate::BR_500k")
@@ -117,9 +117,9 @@ SCENARIO("calc_can_bit_timing", "[calc_can_bit_timing]")
117117
THEN("")
118118
{
119119
REQUIRE(is_valid_baudrate == true);
120-
REQUIRE(baud_rate_prescaler == 1);
121-
REQUIRE(time_segment_1 == 35);
122-
REQUIRE(time_segment_2 == 11);
120+
REQUIRE(baud_rate_prescaler == 2);
121+
REQUIRE(time_segment_1 == 17);
122+
REQUIRE(time_segment_2 == 6);
123123
}
124124
}
125125
WHEN("CanBitRate::BR_1000k")
@@ -131,7 +131,7 @@ SCENARIO("calc_can_bit_timing", "[calc_can_bit_timing]")
131131
REQUIRE(is_valid_baudrate == true);
132132
REQUIRE(baud_rate_prescaler == 1);
133133
REQUIRE(time_segment_1 == 17);
134-
REQUIRE(time_segment_2 == 5);
134+
REQUIRE(time_segment_2 == 6);
135135
}
136136
}
137137
}

0 commit comments

Comments
 (0)