Merge pull request #471 from uavionix/master

Disable logging when Ping receives data
pull/492/head
cyoung 2016-09-27 17:21:04 -04:00 zatwierdzone przez GitHub
commit 2d03dde95a
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -11,7 +11,7 @@ package main
import (
"bufio"
"fmt"
//"fmt"
"log"
"os"
"strings"
@ -148,8 +148,8 @@ func pingSerialReader() {
s := scanner.Text()
// Trimspace removes newlines as well as whitespace
s = strings.TrimSpace(s)
logString := fmt.Sprintf("Ping received: %s", s)
log.Println(logString)
//logString := fmt.Sprintf("Ping received: %s", s)
//log.Println(logString)
if s[0] == '*' {
// 1090ES report
// Ping appends a signal strength at the end of the message