pull/527/head
Christopher Young 2016-11-17 12:46:48 -05:00
rodzic 57e7c6d0a9
commit 564bf93c63
1 zmienionych plików z 2 dodań i 8 usunięć

Wyświetl plik

@ -15,7 +15,6 @@ import (
"golang.org/x/net/icmp" "golang.org/x/net/icmp"
"golang.org/x/net/ipv4" "golang.org/x/net/ipv4"
"io/ioutil" "io/ioutil"
"encoding/json"
"log" "log"
"math" "math"
"math/rand" "math/rand"
@ -197,14 +196,9 @@ var serialOutputChan chan []byte
var networkGDL90Chan chan []byte var networkGDL90Chan chan []byte
func networkOutWatcher() { func networkOutWatcher() {
//ticker := time.NewTicker(10 * time.Second)
//var nmsg gdl90NetMessage
for { for {
select { ch := <-networkGDL90Chan
case ch := <-networkGDL90Chan: gdl90Update.SendJSON(ch)
gdlJSON, _ := json.Marshal(ch)
gdl90Update.Send(gdlJSON)
}
} }
} }