mirror of
https://github.com/micropython/micropython.git
synced 2025-09-05 01:10:36 +02:00
Requesting a baudrate of X should never configure the peripheral to have a baudrate greater than X because connected hardware may not be able to handle higher speeds. This patch makes sure to round the prescaler up so that the actual baudrate is rounded down.