|
|
@ -1,16 +1,13 @@
|
|
|
|
package rfm69
|
|
|
|
package rfm69
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/kidoman/embd"
|
|
|
|
"github.com/fulr/embd"
|
|
|
|
_ "github.com/kidoman/embd/host/rpi"
|
|
|
|
_ "github.com/fulr/embd/host/rpi"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestRfm69(t *testing.T) {
|
|
|
|
func TestRfm69(t *testing.T) {
|
|
|
|
flag.Set("v", "23")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
t.Log("Test")
|
|
|
|
t.Log("Test")
|
|
|
|
if err := embd.InitSPI(); err != nil {
|
|
|
|
if err := embd.InitSPI(); err != nil {
|
|
|
|
t.Error(err)
|
|
|
|
t.Error(err)
|
|
|
|