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
Help me out here... If I remember correctly from when I first worked on this, the idea is that if the calculated bit rate is different, then U2X is set. However, if the calculated bit rate is the same, then U2X is not set. Please double check:
I'm saying always use U2x. While in theory not using U2X is better since it is less error prone, in practice the probability of seeing a difference is so low it's pointless. Using U2x simplifies the code (easier maintenance), and slightly reduces code size as well.
timing error is never lower without U2X, so the error calculation in HardwareSerial::begin() is useless code.
http://wormfood.net/avrbaudcalc.php
The text was updated successfully, but these errors were encountered: