Skip to content

Commit d8358b2

Browse files
Raffael Rostagnokartben
authored andcommitted
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 <raffael.rostagno@espressif.com>
1 parent 00ee4a5 commit d8358b2

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
@@ -555,7 +555,7 @@ ZTEST(spi_loopback, test_spi_null_rx_buf_set)
555555
{
556556
struct spi_dt_spec *spec = loopback_specs[spec_idx];
557557
const struct spi_buf_set tx = spi_loopback_setup_xfer(tx_bufs_pool, 1,
558-
NULL, BUF_SIZE);
558+
buffer_tx, BUF_SIZE);
559559

560560
spi_loopback_transceive(spec, &tx, NULL);
561561
}

0 commit comments

Comments
 (0)