drivers: serial: uart_nrfx_uart: fix NRFX_WAIT_FOR result type
This macro expects a bool variable to store the result. Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
parent
96beb5c870
commit
6d67a56d5b
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue