Skip to content
Commit 9628ecdc authored by Andrzej Głąbek's avatar Andrzej Głąbek Committed by Stephanos Ioannidis
Browse files

drivers: uart_nrfx_uarte: Fix call to HW_RX_COUNTING_ENABLED()



Since the macro references `data->async->hw_rx_counting`, it cannot
be called when `data->async` is NULL, and this could happen when the
PM_DEVICE_ACTION_RESUME action was requested for an instance that uses
the interrupt-driven API while for another instance that uses the
asynchronous API the hardware counting of bytes was configured.
Prevent this by calling the macro from a proper `if` block.

Signed-off-by: default avatarAndrzej Głąbek <andrzej.glabek@nordicsemi.no>
parent 676441e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment