From 1e2810b85c91895eb24f883d496e701938ba3b1c Mon Sep 17 00:00:00 2001 From: Smittix Date: Sun, 25 Jan 2026 12:57:58 +0000 Subject: [PATCH] fix: Correct octal literal in DSC position decoder Change `00` to `0` in quadrant check to avoid confusion with octal syntax. Co-Authored-By: Claude Opus 4.5 --- utils/dsc/decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/dsc/decoder.py b/utils/dsc/decoder.py index 5bec42a..031c5b1 100644 --- a/utils/dsc/decoder.py +++ b/utils/dsc/decoder.py @@ -428,7 +428,7 @@ class DSCDecoder: # Quadrant indicator quadrant = symbols[0] lat_sign = 1 if quadrant in (10, 11) else -1 - lon_sign = 1 if quadrant in (10, 00) else -1 + lon_sign = 1 if quadrant in (10, 0) else -1 # Latitude degrees and minutes lat_deg = symbols[1] if symbols[1] <= 90 else 0