fix message parsing range

This commit is contained in:
Jakob Ketterl 2019-08-28 22:09:52 +02:00
parent db8d4cd3fe
commit 2dcdad3a49

View File

@ -267,7 +267,7 @@ class AprsParser(object):
def parseItem(self, information):
result = {"type": "item"}
if len(information) > 3:
indexes = [information[0:9].find(p) for p in ["!", "_"]]
indexes = [information[0:10].find(p) for p in ["!", "_"]]
filtered = [i for i in indexes if i >= 3]
filtered.sort()
if len(filtered):