samples: boards: nrf: nrfx_prs: align to new nrfx_uarte struct member

One of the nrfx_uarte event structure members was renamed,
so the sample code has to be aligned.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
Nikodem Kastelik 2023-10-03 17:00:20 +02:00 committed by Carles Cufí
parent f3f2c113d1
commit c0ff691a3c

View file

@ -191,7 +191,7 @@ static bool spim_transfer(const uint8_t *tx_data, size_t tx_data_len,
static void uarte_handler(const nrfx_uarte_event_t *p_event, void *p_context)
{
if (p_event->type == NRFX_UARTE_EVT_RX_DONE) {
received = p_event->data.rx.bytes;
received = p_event->data.rx.length;
k_sem_give(&transfer_finished);
} else if (p_event->type == NRFX_UARTE_EVT_ERROR) {
received = 0;