mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
REVONANO - Workaround an approximation bug in SPL UART code.
Due to some approximation bug in SPL 100000 gives a prescaler of 29 resulting in (48000000 / 29) / 16 (oversampling) = 103448 99999 gives a nice 30 resulting in exactly 100000.
This commit is contained in:
parent
295ca38026
commit
04c067e8cd
@ -356,7 +356,7 @@ static const struct pios_usart_cfg pios_usart_sbus_main_cfg = {
|
||||
.regs = MAIN_USART_REGS,
|
||||
.remap = MAIN_USART_REMAP,
|
||||
.init = {
|
||||
.USART_BaudRate = 100000,
|
||||
.USART_BaudRate = 99999,
|
||||
.USART_WordLength = USART_WordLength_8b,
|
||||
.USART_Parity = USART_Parity_Even,
|
||||
.USART_StopBits = USART_StopBits_2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user