From 8f4dff5b30eb28eb6f2e0887e64cac94dd2f89fd Mon Sep 17 00:00:00 2001 From: "Hegr,Jiri" Date: Mon, 19 Aug 2019 14:49:34 +0200 Subject: [PATCH] Corrected category parsing. --- pyModeS/decoder/bds/bds08.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyModeS/decoder/bds/bds08.py b/pyModeS/decoder/bds/bds08.py index 7516b13..895e525 100644 --- a/pyModeS/decoder/bds/bds08.py +++ b/pyModeS/decoder/bds/bds08.py @@ -36,8 +36,9 @@ def category(msg): if common.typecode(msg) < 1 or common.typecode(msg) > 4: raise RuntimeError("%s: Not a identification message" % msg) - msgbin = common.hex2bin(msg) - return common.bin2int(msgbin[5:8]) + msgbin = common.hex2bin(msg) + mebin = msgbin[32:87] + return common.bin2int(mebin[5:8]) def callsign(msg):