Fixed raw AX25 data, changed AIS message formatting.

This commit is contained in:
Marat Fayzullin 2024-08-02 21:11:34 -04:00
parent 8ae8cbdd0a
commit 3c1e351caf
1 changed files with 4 additions and 1 deletions

View File

@ -288,6 +288,9 @@ class AprsParser(PickleModule):
"path": data["path"] "path": data["path"]
} }
if "raw" in data:
aprsData["raw"] = data["raw"]
if information[0] == 0x1C or information[0] == ord("`") or information[0] == ord("'"): if information[0] == 0x1C or information[0] == ord("`") or information[0] == ord("'"):
aprsData.update(MicEParser().parse(data)) aprsData.update(MicEParser().parse(data))
return aprsData return aprsData
@ -526,7 +529,7 @@ class AprsParser(PickleModule):
out += bytes([buf]) out += bytes([buf])
# For now, just print data in hex # For now, just print data in hex
result["message"] = " ".join(["%02X" % x for x in out]) result["message"] = "".join('{:02X}'.format(x) for x in out)
return result return result