Skip to content

Commit c4bc728

Browse files
committed
SPI: Fix bug in buf transfer
- Remove & since we already get a void pointer. Signed-off-by: Ayush Singh <[email protected]>
1 parent 7b3c1fe commit c4bc728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/SPI.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ uint16_t arduino::ZephyrSPI::transfer16(uint16_t data) {
5959

6060
void arduino::ZephyrSPI::transfer(void *buf, size_t count) {
6161
int ret;
62-
const struct spi_buf tx_buf = {.buf = &buf, .len = count};
62+
const struct spi_buf tx_buf = {.buf = buf, .len = count};
6363
const struct spi_buf_set tx_buf_set = {
6464
.buffers = &tx_buf,
6565
.count = 1,

0 commit comments

Comments
 (0)