From a5b84ab9ce58c050631f0eb4755b31a4d2b9f567 Mon Sep 17 00:00:00 2001 From: Friedl Ulrich Date: Mon, 2 Feb 2015 21:52:03 +0100 Subject: [PATCH] Fix in test --- test/test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test.go b/test/test.go index ede5ef2..4c0230b 100644 --- a/test/test.go +++ b/test/test.go @@ -16,9 +16,11 @@ func main() { } defer embd.CloseSPI() - spiBus := embd.NewSPIBus(embd.SPIMode0, 0, 1000000, 8, 0) + spiBus := embd.NewSPIBus(embd.SPIMode0, 0, 4000000, 8, 0) defer spiBus.Close() - rfm := rfm69.NewDevice(spiBus, 1, 10, true) - + rfm, err := rfm69.NewDevice(spiBus, 1, 10, true) + if err != nil { + panic(err) + } }