From 04c067e8cd7f214fe40114723c2947e59d48962f Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Wed, 22 Apr 2015 22:25:22 +0200 Subject: [PATCH] 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. --- flight/targets/boards/revonano/board_hw_defs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/targets/boards/revonano/board_hw_defs.c b/flight/targets/boards/revonano/board_hw_defs.c index 7b9701292..f3d9cde3e 100644 --- a/flight/targets/boards/revonano/board_hw_defs.c +++ b/flight/targets/boards/revonano/board_hw_defs.c @@ -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,