From 2fc4f7fd3af20f031c34e979013dbfe91dd73b45 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 27 Aug 2023 03:50:18 +0200 Subject: [PATCH] strip trailing whitespace on the flight number --- owrx/adsb/modes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/adsb/modes.py b/owrx/adsb/modes.py index 9bb0d10f..310f8784 100644 --- a/owrx/adsb/modes.py +++ b/owrx/adsb/modes.py @@ -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