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) type UserCbT func(C.char, *C.uint8_t, C.int)
// Dump978Init must be the first function called in this package. func init() {
func Dump978Init() {
C.Dump978Init((C.CallBack)(C.GetGoCb())) C.Dump978Init((C.CallBack)(C.GetGoCb()))
} }

Wyświetl plik

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