From 061c9bf4fe7879a030e6b89c895f5eb433c6923e Mon Sep 17 00:00:00 2001 From: Jan Okle Date: Sun, 1 Apr 2018 11:39:15 -0400 Subject: [PATCH] [PX4: WIP] Fix transmission status handling in the serial interrupt --- arch/arm/src/kinetis/kinetis_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/kinetis/kinetis_serial.c b/arch/arm/src/kinetis/kinetis_serial.c index 23d327ec09a..771906c785b 100644 --- a/arch/arm/src/kinetis/kinetis_serial.c +++ b/arch/arm/src/kinetis/kinetis_serial.c @@ -950,7 +950,7 @@ static int up_interrupts(int irq, void *context, FAR void *arg) * the TX data register. */ - if ((s1 & UART_S1_TDRE) != 0) + if ((s1 & UART_S1_TDRE) != 0 && (priv->ie & UART_C2_TIE) != 0) #endif { /* Process outgoing bytes */