fix message offsets

This commit is contained in:
Jakob Ketterl 2019-08-27 23:32:21 +02:00
parent 1d8fea891a
commit 5530c96f8e

View File

@ -248,7 +248,7 @@ class AprsParser(object):
def parseMessage(self, information): def parseMessage(self, information):
result = {"type": "message"} result = {"type": "message"}
if len(information) > 10 and information[10] == ":": if len(information) > 9 and information[9] == ":":
result["adressee"] = information[0:9] result["adressee"] = information[0:9]
message = information[10:] message = information[10:]
if len(message) > 3 and message[0:3] == "ack": if len(message) > 3 and message[0:3] == "ack":