You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int closestSpeed = ss.baud_base / ss.custom_divisor;
ss.custom_divisor becomes zero if ss.baud_base <= brate / 2.
In this case the driver segfaults due to the division by zero. At least on my machine ss.baud_base seems to be zero by default thus this code segfaults for all custom baud rates.
The text was updated successfully, but these errors were encountered:
drivers-iodrivers_base/src/Driver.cpp
Lines 479 to 480 in 07ef979
ss.custom_divisor
becomes zero ifss.baud_base <= brate / 2
.In this case the driver segfaults due to the division by zero. At least on my machine ss.baud_base seems to be zero by default thus this code segfaults for all custom baud rates.
The text was updated successfully, but these errors were encountered: