mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 13:01:10 +02:00
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
|
||||
} 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) {
|
||||
|
Reference in New Issue
Block a user