fix message offsets
This commit is contained in:
parent
1d8fea891a
commit
5530c96f8e
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user