From 5fdbbf7d7e65e03bb132de9701598088fb24a177 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 6 Sep 2024 16:41:09 -0400 Subject: [PATCH] uart: nrfx: fix config check we should be checking for config, not data. Fixes #78114 Signed-off-by: Anas Nashif --- drivers/serial/uart_nrfx_uarte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_nrfx_uarte.c b/drivers/serial/uart_nrfx_uarte.c index 0045f300ec2..f1c09844288 100644 --- a/drivers/serial/uart_nrfx_uarte.c +++ b/drivers/serial/uart_nrfx_uarte.c @@ -1306,7 +1306,7 @@ static void rxto_isr(const struct device *dev) data->async->discard_rx_fifo = false; flushed = rx_flush(dev, NULL, 0); - if (HW_RX_COUNTING_ENABLED(data)) { + if (HW_RX_COUNTING_ENABLED(config)) { /* It need to be included because TIMER+PPI got RXDRDY events * and counted those flushed bytes. */