We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3497024 commit af26f8dCopy full SHA for af26f8d
libraries/Arduino_CAN/src/CanUtil.cpp
@@ -53,7 +53,7 @@ std::tuple<bool, uint32_t, uint32_t, uint32_t>
53
/* If the fractional part is sufficiently close to zero, we have
54
* found a valid prescaler configuration.
55
*/
56
- if (brp_fract < 0.01)
+ if (brp_fract < 0.01 || brp_fract > 0.99)
57
{
58
uint32_t const baud_rate_prescaler = static_cast<uint32_t>(brp_ipart);
59
/* Assign TSEG1 and TSEG2 to set the sample point at 75%. */
0 commit comments