Wrong order in UAT max signal strength

pull/285/head
AvSquirrel 2016-02-24 02:20:38 +00:00
rodzic a1a3dd5fbf
commit 27dc75ca0e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -858,7 +858,7 @@ func parseInput(buf string) ([]byte, uint16) {
ssStr := ss[3:]
if ssInt, err := strconv.Atoi(ssStr); err == nil {
thisSignalStrength = ssInt
if ssInt > isUplink && maxSignalStrength { // only look at uplinks; ignore ADS-B and TIS-B/ADS-R messages
if isUplink && (ssInt > maxSignalStrength) { // only look at uplinks; ignore ADS-B and TIS-B/ADS-R messages
maxSignalStrength = ssInt
}
} else {