Skip to content

Commit

Permalink
drivers: serial: uart_nrfx_uart: fix NRFX_WAIT_FOR result type
Browse files Browse the repository at this point in the history
This macro expects a bool variable to store the result.

Signed-off-by: Martin Jäger <martin@libre.solar>
  • Loading branch information
martinjaeger authored and MaureenHelm committed Sep 14, 2023
1 parent 96beb5c commit 6d67a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/uart_nrfx_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ static void uart_nrfx_poll_out(const struct device *dev, unsigned char c)
nrf_uart_txd_set(uart0_addr, (uint8_t)c);

/* Wait until the transmitter is ready, i.e. the character is sent. */
int res;
bool res;

NRFX_WAIT_FOR(event_txdrdy_check(), 1000, 1, res);

Expand Down

0 comments on commit 6d67a56

Please sign in to comment.