From 4b0839bd7b394224902e58079343ff87a622c2c9 Mon Sep 17 00:00:00 2001 From: guochuangjian <465469791@qq.com> Date: Wed, 1 Aug 2018 00:35:42 +0800 Subject: [PATCH] update uart isr ore-flag handle error bug. --- bsp/stm32f10x/drivers/usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/stm32f10x/drivers/usart.c b/bsp/stm32f10x/drivers/usart.c index 898a0135c8..65a05c3afe 100644 --- a/bsp/stm32f10x/drivers/usart.c +++ b/bsp/stm32f10x/drivers/usart.c @@ -270,7 +270,7 @@ static void uart_isr(struct rt_serial_device *serial) { } if (USART_GetFlagStatus(uart->uart_device, USART_FLAG_ORE) == SET) { - stm32_getc(serial); + USART_ReceiveData(uart->uart_device); } }