1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

OP-1275 - Reenable usart after init in ChangeBaud

This commit is contained in:
Alessio Morale 2014-08-21 21:10:28 +02:00
parent 212170bcb9
commit de4180f990

View File

@ -252,6 +252,8 @@ static void PIOS_USART_ChangeBaud(uint32_t usart_id, uint32_t baud)
/* Write back the new configuration */
USART_Init(usart_dev->cfg->regs, &USART_InitStructure);
USART_Cmd(usart_dev->cfg->regs, ENABLE);
}
static void PIOS_USART_RegisterRxCallback(uint32_t usart_id, pios_com_callback rx_in_cb, uint32_t context)