Skip to content

Commit b0e6829

Browse files
committed
[nrf fromlist] drivers: serial: uart_async_to_irq: Fix uart_irq_tx_complete
uart_irq_tx_complete is implemented by z_uart_async_to_irq_irq_tx_ready which changed recently (5bd53b6) to return positive value that may be bigger than 1. uart_irq_tx_complete shall not return value bigger than 1. Upstream PR: zephyrproject-rtos/zephyr#80355 Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 33919fc commit b0e6829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_async_to_irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void z_uart_async_to_irq_irq_rx_disable(const struct device *dev)
284284
/** Interrupt driven transfer complete function */
285285
int z_uart_async_to_irq_irq_tx_complete(const struct device *dev)
286286
{
287-
return z_uart_async_to_irq_irq_tx_ready(dev);
287+
return z_uart_async_to_irq_irq_tx_ready(dev) > 0 ? 1 : 0;
288288
}
289289

290290
/** Interrupt driven receiver ready function */

0 commit comments

Comments
 (0)