update uart isr ore-flag handle error bug.

This commit is contained in:
guochuangjian 2018-08-01 00:35:42 +08:00
parent 7b9de446cb
commit 4b0839bd7b
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ static void uart_isr(struct rt_serial_device *serial) {
} }
if (USART_GetFlagStatus(uart->uart_device, USART_FLAG_ORE) == SET) if (USART_GetFlagStatus(uart->uart_device, USART_FLAG_ORE) == SET)
{ {
stm32_getc(serial); USART_ReceiveData(uart->uart_device);
} }
} }