mirror of
https://github.com/smittix/intercept.git
synced 2026-07-27 10:08:10 -07:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -428,7 +428,7 @@ class DSCDecoder:
|
|||||||
# Quadrant indicator
|
# Quadrant indicator
|
||||||
quadrant = symbols[0]
|
quadrant = symbols[0]
|
||||||
lat_sign = 1 if quadrant in (10, 11) else -1
|
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
|
# Latitude degrees and minutes
|
||||||
lat_deg = symbols[1] if symbols[1] <= 90 else 0
|
lat_deg = symbols[1] if symbols[1] <= 90 else 0
|
||||||
|
|||||||
Reference in New Issue
Block a user