summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bsp/ft32/libraries/Drivers/drv_usart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/ft32/libraries/Drivers/drv_usart.c b/bsp/ft32/libraries/Drivers/drv_usart.c
index ee308c946c..5cbd353ea0 100644
--- a/bsp/ft32/libraries/Drivers/drv_usart.c
+++ b/bsp/ft32/libraries/Drivers/drv_usart.c
@@ -357,7 +357,7 @@ static void uart_isr(struct rt_serial_device *serial)
}
USART_ClearFlag(uart->config->Instance, USART_IT_IDLE);
}
- else if (USART_GetFlagStatus(uart->config->Instance, USART_FLAG_TC) != RESET))
+ else if (USART_GetFlagStatus(uart->config->Instance, USART_FLAG_TC) != RESET)
{
if ((serial->parent.open_flag & RT_DEVICE_FLAG_DMA_TX) != 0)
{