summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/stm32/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/stm32/serial.c b/libcpu/arm/stm32/serial.c
index 7d4795a9ad..54c8290687 100644
--- a/libcpu/arm/stm32/serial.c
+++ b/libcpu/arm/stm32/serial.c
@@ -489,7 +489,7 @@ void rt_hw_serial_isr(rt_device_t device)
uart->int_tx->write_index = 0;
/* clear interrupt */
- USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
+ USART_ClearITPendingBit(uart->uart_device, USART_IT_TC);
/* start next transmission */
if (uart->int_tx->write_index <