From 27dc75ca0eca9858704f125ab8db798ac2603c77 Mon Sep 17 00:00:00 2001 From: AvSquirrel Date: Wed, 24 Feb 2016 02:20:38 +0000 Subject: [PATCH] Wrong order in UAT max signal strength --- main/gen_gdl90.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index dedf4fd9..f4a7a6b3 100644 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -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 {