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)