Commit bbdd73db authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

port a49a2bbc138b34080f36ad3d091e57db6bb0e7ba from Pd-l2ork: fixed segfault...

port a49a2bbc138b34080f36ad3d091e57db6bb0e7ba from Pd-l2ork: fixed segfault caused by the latest commit. Now everything should work including the RPi3.
parent 7a95f400
......@@ -164,7 +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]));
memset(&spid[i], 0, sizeof (spid[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