Fix in test

master
Friedl Ulrich 10 years ago
parent fce2403cd7
commit a5b84ab9ce

@ -16,9 +16,11 @@ func main() {
} }
defer embd.CloseSPI() defer embd.CloseSPI()
spiBus := embd.NewSPIBus(embd.SPIMode0, 0, 1000000, 8, 0) spiBus := embd.NewSPIBus(embd.SPIMode0, 0, 4000000, 8, 0)
defer spiBus.Close() defer spiBus.Close()
rfm := rfm69.NewDevice(spiBus, 1, 10, true) rfm, err := rfm69.NewDevice(spiBus, 1, 10, true)
if err != nil {
panic(err)
}
} }

Loading…
Cancel
Save