Merge pull request #338 from jpoirier/godump978_init

auto init on package import
pull/341/head
cyoung 2016-03-16 08:20:39 -04:00
commit 3ae0439429
2 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -44,8 +44,7 @@ var InChan = make(chan []byte, 100)
type UserCbT func(C.char, *C.uint8_t, C.int)
// Dump978Init must be the first function called in this package.
func Dump978Init() {
func init() {
C.Dump978Init((C.CallBack)(C.GetGoCb()))
}

Wyświetl plik

@ -521,6 +521,5 @@ func sdrWatcher() {
func sdrInit() {
go sdrWatcher()
go uatReader()
godump978.Dump978Init()
go godump978.ProcessDataFromChannel()
}