Skip to content

Commit

Permalink
SPI: Fix bug in buf transfer
Browse files Browse the repository at this point in the history
- Remove & since we already get a void pointer.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
  • Loading branch information
Ayush1325 committed Jun 17, 2024
1 parent 7b3c1fe commit c4bc728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SPI/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c4bc728

Please sign in to comment.