ArduinoCore-sam icon indicating copy to clipboard operation
ArduinoCore-sam copied to clipboard

Add rounding to Baud Rate Divisor calculation. Permits operation at …

Open WestfW opened this issue 7 years ago • 1 comments

The Baud Rate Generator Divisor calculations in UARTClass::init() do not round, leading to error rates higher than they could be. In particular, the error at 230400bps is both large and in the opposite direction of the 16u2 error, and it fails. Adding rounding allows it to work.

regression tested at standard speeds 9600, 19200, 38400, 57600, 115200...

WestfW avatar Aug 02 '18 08:08 WestfW

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 09 '21 13:04 CLAassistant