Skip to content

Commit

Permalink
[PX4: WIP] Fix transmission status handling in the serial interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
janokle authored and PX4 Jenkins committed Aug 3, 2018
1 parent 228396c commit 5e82d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/src/kinetis/kinetis_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5e82d9c

Please sign in to comment.