From beb50fc788c6ac697d5c554e4a7be0178b3cdda2 Mon Sep 17 00:00:00 2001 From: Flyer350 <57186034+Flyer350@users.noreply.github.com> Date: Wed, 11 Nov 2020 00:12:47 +0100 Subject: [PATCH] Update uplink.py --- pyModeS/decoder/uplink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyModeS/decoder/uplink.py b/pyModeS/decoder/uplink.py index d1a6f70..bfcfb15 100644 --- a/pyModeS/decoder/uplink.py +++ b/pyModeS/decoder/uplink.py @@ -22,8 +22,8 @@ def uplink_icao(msg): def uf(msg): """Decode Uplink Format value, bits 1 to 5.""" - dfbin = common.hex2bin(msg[:2]) - return min(common.bin2int(dfbin[0:5]), 24) + ufbin = common.hex2bin(msg[:2]) + return min(common.bin2int(ufbin[0:5]), 24) def bds(msg):