uart: nrfx: fix config check

we should be checking for config, not data.

Fixes #78114

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-09-06 16:41:09 -04:00
commit 5fdbbf7d7e

View file

@ -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.
*/