Fix for test

master
Friedl Ulrich 10 years ago
parent 56dc8ce5fb
commit c3a8df58f7

@ -9,7 +9,7 @@ import (
) )
func TestRfm69(t *testing.T) { func TestRfm69(t *testing.T) {
flag.Set("v", 23) flag.Set("v", "23")
t.Log("Test") t.Log("Test")
if err := embd.InitSPI(); err != nil { if err := embd.InitSPI(); err != nil {
@ -28,10 +28,10 @@ func TestRfm69(t *testing.T) {
} }
defer gpio.Close() defer gpio.Close()
if err := gpio.SetDirection(embd.In); err != nil { //if err := gpio.SetDirection(embd.In); err != nil {
panic(err) // panic(err)
} //}
gpio.ActiveLow(false) //gpio.ActiveLow(false)
spiBus := embd.NewSPIBus(embd.SPIMode0, 0, 4000000, 8, 0) spiBus := embd.NewSPIBus(embd.SPIMode0, 0, 4000000, 8, 0)
defer spiBus.Close() defer spiBus.Close()

Loading…
Cancel
Save