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 <pieter.degendt@basalte.be>
This commit is contained in:
parent
92019b1dac
commit
8bbb88999b
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ static void uart_emul_isr_handle_rx_ready(struct uart_emul_fixture *fixture)
|
|||
uint32_t rx_content_it;
|
||||
int ret;
|
||||
|
||||
if (fixture->tx_remaining) {
|
||||
if (fixture->rx_remaining) {
|
||||
rx_content_it = sizeof(fixture->rx_content) - fixture->rx_remaining;
|
||||
ret = uart_fifo_read(fixture->dev, &fixture->rx_content[rx_content_it],
|
||||
fixture->rx_remaining);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue