samd/machine_uart: Fix lock-up in loopback mode if read buffer is full.
Signed-off-by: robert-hh <robert@hammelrath.com>
This commit is contained in:
@@ -156,7 +156,8 @@ void common_uart_irq_handler(int uart_id) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else if (uart->USART.INTFLAG.bit.DRE != 0) {
|
}
|
||||||
|
if (uart->USART.INTFLAG.bit.DRE != 0) {
|
||||||
#if MICROPY_HW_UART_TXBUF
|
#if MICROPY_HW_UART_TXBUF
|
||||||
// handle the outgoing data
|
// handle the outgoing data
|
||||||
if (ringbuf_avail(&self->write_buffer) > 0) {
|
if (ringbuf_avail(&self->write_buffer) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user