Skip to content

Commit 7141aef

Browse files
Raffael Rostagnonordicjm
authored andcommitted
[nrf fromtree] tests: drivers: spi_loopback: Fix NULL rx buff testcase
Fixes setup of TX buffer, which shouldn't be NULL in the RX NULL tescase. Signed-off-by: Raffael Rostagno <[email protected]> (cherry picked from commit d8358b2)
1 parent 9f26366 commit 7141aef

File tree

1 file changed

+1
-1
lines changed
  • tests/drivers/spi/spi_loopback/src

1 file changed

+1
-1
lines changed

tests/drivers/spi/spi_loopback/src/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ ZTEST(spi_loopback, test_spi_null_rx_buf_set)
559559
{
560560
struct spi_dt_spec *spec = loopback_specs[spec_idx];
561561
const struct spi_buf_set tx = spi_loopback_setup_xfer(tx_bufs_pool, 1,
562-
NULL, BUF_SIZE);
562+
buffer_tx, BUF_SIZE);
563563

564564
spi_loopback_transceive(spec, &tx, NULL);
565565
}

0 commit comments

Comments
 (0)