strip trailing whitespace on the flight number

This commit is contained in:
Jakob Ketterl 2023-08-27 03:50:18 +02:00
parent a08e3c0fb6
commit 2fc4f7fd3a

View file

@ -125,7 +125,7 @@ class ModeSParser(PickleModule):
input[10] & 0b00111111
]
message["identification"] = bytes(b + (0x40 if b < 27 else 0) for b in id).decode("ascii")
message["identification"] = bytes(b + (0x40 if b < 27 else 0) for b in id).decode("ascii").strip()
elif type in [5, 6, 7, 8]:
# surface position