diff --git a/libraries/Arduino_CAN/src/CanUtil.cpp b/libraries/Arduino_CAN/src/CanUtil.cpp index 9861e15e..75f88c4b 100644 --- a/libraries/Arduino_CAN/src/CanUtil.cpp +++ b/libraries/Arduino_CAN/src/CanUtil.cpp @@ -53,7 +53,7 @@ std::tuple /* If the fractional part is sufficiently close to zero, we have * found a valid prescaler configuration. */ - if (brp_fract < 0.01) + if (brp_fract < 0.01 || brp_fract > 0.99) { uint32_t const baud_rate_prescaler = static_cast(brp_ipart); /* Assign TSEG1 and TSEG2 to set the sample point at 75%. */