summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/samd/machine_uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/samd/machine_uart.c b/ports/samd/machine_uart.c
index 85a81660c..5be38e961 100644
--- a/ports/samd/machine_uart.c
+++ b/ports/samd/machine_uart.c
@@ -156,7 +156,8 @@ void common_uart_irq_handler(int uart_id) {
}
}
#endif
- } else if (uart->USART.INTFLAG.bit.DRE != 0) {
+ }
+ if (uart->USART.INTFLAG.bit.DRE != 0) {
#if MICROPY_HW_UART_TXBUF
// handle the outgoing data
if (ringbuf_avail(&self->write_buffer) > 0) {