Update uplink.py

This commit is contained in:
Flyer350 2020-11-11 00:12:47 +01:00 committed by GitHub
parent fc135eacef
commit beb50fc788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):