From c4bc728234a9fef6df70037d50b4037eecfe55f8 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Mon, 17 Jun 2024 15:54:04 +0530 Subject: [PATCH] SPI: Fix bug in buf transfer - Remove & since we already get a void pointer. Signed-off-by: Ayush Singh --- libraries/SPI/SPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index 29a18153..81b42481 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -59,7 +59,7 @@ uint16_t arduino::ZephyrSPI::transfer16(uint16_t data) { void arduino::ZephyrSPI::transfer(void *buf, size_t count) { int ret; - const struct spi_buf tx_buf = {.buf = &buf, .len = count}; + const struct spi_buf tx_buf = {.buf = buf, .len = count}; const struct spi_buf_set tx_buf_set = { .buffers = &tx_buf, .count = 1,