Fix in test
This commit is contained in:
parent
fce2403cd7
commit
a5b84ab9ce
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue