From ad23db2039defa66362b1bc1fd36a33dd545eda6 Mon Sep 17 00:00:00 2001 From: Friedl Ulrich Date: Thu, 5 Feb 2015 22:04:50 +0100 Subject: [PATCH] SPI Device with cgo --- rfm69_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rfm69_test.go b/rfm69_test.go index 8aa7d13..6f919d1 100644 --- a/rfm69_test.go +++ b/rfm69_test.go @@ -26,7 +26,10 @@ func TestRfm69(t *testing.T) { } gpio.ActiveLow(false) - spiBus := NewSPIDevice() + spiBus, err := NewSPIDevice() + if err != nil { + panic(err) + } defer spiBus.Close() rfm, err := NewDevice(spiBus, gpio, 1, 10, true)