From 5ad4fe4eb54d9b9c699ad60070232082f14555c5 Mon Sep 17 00:00:00 2001 From: Friedl Ulrich Date: Thu, 5 Feb 2015 22:01:43 +0100 Subject: [PATCH] SPI Device with cgo --- rfm69device.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rfm69device.go b/rfm69device.go index d23da8e..17fd0a2 100644 --- a/rfm69device.go +++ b/rfm69device.go @@ -355,5 +355,6 @@ func (r *Device) writeFifo(toAddress byte, buffer []byte, requestACK, sendACK bo copy(tx[5:], buffer[:buffersize]) - return r.SpiDevice.TransferAndRecieveData(tx) + _, err := r.SpiDevice.Xfer(tx) + return err }