SPI Device with cgo
This commit is contained in:
parent
610f9824a2
commit
5ad4fe4eb5
1 changed files with 2 additions and 1 deletions
|
@ -355,5 +355,6 @@ func (r *Device) writeFifo(toAddress byte, buffer []byte, requestACK, sendACK bo
|
||||||
|
|
||||||
copy(tx[5:], buffer[:buffersize])
|
copy(tx[5:], buffer[:buffersize])
|
||||||
|
|
||||||
return r.SpiDevice.TransferAndRecieveData(tx)
|
_, err := r.SpiDevice.Xfer(tx)
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue