// Utility scans spectrum and shows channels on which Crazyflies found
package main

import (
	"log"

	"github.com/krasin/crazyradio"
	"github.com/krasin/crazyradio/usb"
)

func main() {
	st, err := crazyradio.Start(usb.Hub)
	if err != nil {
		log.Fatal(err)
	}
	addr, err := st.Scan()
	if err != nil {
		log.Fatalf("Scan failed: %v", err)
	}
	log.Printf("Found crazyflies: %v", addr)
}

// Utility scans spectrum and shows channels on which Crazyflies found
package main

import (
	"log"

	"github.com/krasin/crazyradio"
)

func main() {
	st, err := crazyradio.Start(nil)
	if err != nil {
		log.Fatal(err)
	}
	addr, err := st.Scan()
	if err != nil {
		log.Fatalf("Scan failed: %v", err)
	}
	log.Printf("Found crazyflies: %v", addr)
}

--- 
+++ 
@@ -5,10 +5,11 @@
 	"log"
 
 	"github.com/krasin/crazyradio"
+	"github.com/krasin/crazyradio/usb"
 )
 
 func main() {
-	st, err := crazyradio.Start(nil)
+	st, err := crazyradio.Start(usb.Hub)
 	if err != nil {
 		log.Fatal(err)
 	}
Fix nil reference panic in crazyradio-scan. Pass usb.Hub to station.Start, instead of nil
