Corrected category parsing.
This commit is contained in:
@@ -36,8 +36,9 @@ def category(msg):
|
|||||||
if common.typecode(msg) < 1 or common.typecode(msg) > 4:
|
if common.typecode(msg) < 1 or common.typecode(msg) > 4:
|
||||||
raise RuntimeError("%s: Not a identification message" % msg)
|
raise RuntimeError("%s: Not a identification message" % msg)
|
||||||
|
|
||||||
msgbin = common.hex2bin(msg)
|
msgbin = common.hex2bin(msg)
|
||||||
return common.bin2int(msgbin[5:8])
|
mebin = msgbin[32:87]
|
||||||
|
return common.bin2int(mebin[5:8])
|
||||||
|
|
||||||
|
|
||||||
def callsign(msg):
|
def callsign(msg):
|
||||||
|
|||||||
Reference in New Issue
Block a user