fix #39; typos

This commit is contained in:
Rossen Georgiev 2018-01-20 14:38:23 +00:00
parent 39a9c0a1a4
commit acb4c66ff9
1 changed files with 3 additions and 3 deletions

View File

@ -171,15 +171,15 @@ def parse_normal(body):
if int(lat_deg) > 89 or int(lat_deg) < 0:
raise ParseError("latitude is out of range (0-90 degrees)")
if int(lon_deg) > 179 or int(lon_deg) < 0:
raise ParseError("longitutde is out of range (0-180 degrees)")
raise ParseError("longitude is out of range (0-180 degrees)")
"""
f float(lat_min) >= 60:
raise ParseError("latitude minutes are out of range (0-60)")
if float(lon_min) >= 60:
raise ParseError("longitude minutes are out of range (0-60)")
the above is commented out intentionally
apperantly aprs.fi doesn't bound check minutes
The above is commented out intentionally
apparently aprs.fi doesn't bound check minutes
and there are actual packets that have >60min
i don't even know why that's the case
"""