kopia lustrzana https://github.com/cyoung/stratux
Cleanup. #526.
rodzic
57e7c6d0a9
commit
564bf93c63
|
@ -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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue