Commit 713dd137 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

port 07081a7590bc80a65d0a3f9a6fd6fa3f3b16e777 from Pd-l2ork: introduced...

port 07081a7590bc80a65d0a3f9a6fd6fa3f3b16e777 from Pd-l2ork: introduced potential fix for spi issues on RPi3
parent 294119c4
......@@ -164,6 +164,7 @@ static int disis_spi_write_read(t_disis_spi *spi, unsigned char *data, int lengt
for (i = 0 ; i < length ; i++){
memset(&spi[i], 0, sizeof (spi[i]));
spid[i].tx_buf = (unsigned long)(data + i); // transmit from "data"
spid[i].rx_buf = (unsigned long)(data + i); // receive into "data"
spid[i].len = sizeof(*(data + i));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment