From 6d67a56d5b5ddb3f744eb844e6b4f7d033be7a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Thu, 14 Sep 2023 11:00:22 +0200 Subject: [PATCH] drivers: serial: uart_nrfx_uart: fix NRFX_WAIT_FOR result type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This macro expects a bool variable to store the result. Signed-off-by: Martin Jäger --- drivers/serial/uart_nrfx_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_nrfx_uart.c b/drivers/serial/uart_nrfx_uart.c index 4eb4e231474e5a..25dab17ea74a0c 100644 --- a/drivers/serial/uart_nrfx_uart.c +++ b/drivers/serial/uart_nrfx_uart.c @@ -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);