From c3a8df58f78fb46eacf6c1c12086974b6674698d Mon Sep 17 00:00:00 2001 From: Friedl Ulrich Date: Tue, 3 Feb 2015 18:06:23 +0100 Subject: [PATCH] Fix for test --- rfm69_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rfm69_test.go b/rfm69_test.go index 3ca364c..c400281 100644 --- a/rfm69_test.go +++ b/rfm69_test.go @@ -9,7 +9,7 @@ import ( ) func TestRfm69(t *testing.T) { - flag.Set("v", 23) + flag.Set("v", "23") t.Log("Test") if err := embd.InitSPI(); err != nil { @@ -28,10 +28,10 @@ func TestRfm69(t *testing.T) { } defer gpio.Close() - if err := gpio.SetDirection(embd.In); err != nil { - panic(err) - } - gpio.ActiveLow(false) + //if err := gpio.SetDirection(embd.In); err != nil { + // panic(err) + //} + //gpio.ActiveLow(false) spiBus := embd.NewSPIBus(embd.SPIMode0, 0, 4000000, 8, 0) defer spiBus.Close()