Corrected category parsing.

This commit is contained in:
Hegr,Jiri
2019-08-19 14:49:34 +02:00
parent 7267859548
commit 8f4dff5b30

View File

@@ -37,7 +37,8 @@ def category(msg):
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):