Skip to content
Commit f7853dfb authored by Declan Snyder's avatar Declan Snyder Committed by Daniel DeGrasse
Browse files

tests: spi_loopback: Fix same_buf_cmd test



The tests was written wrong. It was meant to test using same spi bufs
for both rx and tx, as in tree many sensor and other spi device drivers
use this paradigm. But the 2nd buf setup call was overwriting the first.
Fix by not using the helper function for this case.

And for the write back test, test using same spi_buf_set.

Signed-off-by: default avatarDeclan Snyder <declan.snyder@nxp.com>
parent 1804eb7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment