kopia lustrzana https://github.com/cyoung/stratux
Send traffic update to logTraffic().
rodzic
7ad31e9414
commit
4e5513ce95
|
@ -188,6 +188,7 @@ func sendTrafficUpdates() {
|
|||
|
||||
// Send update to attached JSON client.
|
||||
func registerTrafficUpdate(ti TrafficInfo) {
|
||||
logTraffic(ti)
|
||||
if !ti.Position_valid { // Don't send unless a valid position exists.
|
||||
return
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue