Skip to content

Commit 8bbb889

Browse files
pdgendtfabiobaltieri
authored andcommitted
tests: drivers: uart: uart_emul: Fix RX remaining check
The UART interrupt emulation test checks the wrong variable for remaining RX bytes. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 92019b1 commit 8bbb889

File tree

1 file changed

+1
-1
lines changed
  • tests/drivers/uart/uart_emul/src

1 file changed

+1
-1
lines changed

tests/drivers/uart/uart_emul/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static void uart_emul_isr_handle_rx_ready(struct uart_emul_fixture *fixture)
167167
uint32_t rx_content_it;
168168
int ret;
169169

170-
if (fixture->tx_remaining) {
170+
if (fixture->rx_remaining) {
171171
rx_content_it = sizeof(fixture->rx_content) - fixture->rx_remaining;
172172
ret = uart_fifo_read(fixture->dev, &fixture->rx_content[rx_content_it],
173173
fixture->rx_remaining);

0 commit comments

Comments
 (0)