From c16a484796bed76510b28045af7c34fbebfe855b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Tue, 17 Mar 2026 11:52:44 +0100 Subject: [PATCH] zephyr/machine_uart: Ignore return value of uart_irq_update. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For uart_irq_update() the allowed return values are a negative errno or 1. 0 is not allowd. Therefore ignore the return value. Also the return type might soon be changed to void. Signed-off-by: Fin Maaß --- ports/zephyr/machine_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/zephyr/machine_uart.c b/ports/zephyr/machine_uart.c index 60613befb1..81957c6933 100644 --- a/ports/zephyr/machine_uart.c +++ b/ports/zephyr/machine_uart.c @@ -265,7 +265,7 @@ static mp_uint_t mp_machine_uart_ioctl(mp_obj_t self_in, mp_uint_t request, uint static void uart_interrupt_handler(const struct device *dev, void *user_data) { machine_uart_obj_t *self = (machine_uart_obj_t *)user_data; - while (uart_irq_update(dev) && uart_irq_is_pending(dev)) { + while (uart_irq_update(dev), uart_irq_is_pending(dev)) { if (uart_irq_rx_ready(dev)) { uint8_t _rx_buffer[32]; size_t _free_space = MIN(ringbuf_free(&self->rx_ringbuffer), sizeof(_rx_buffer));