Update gps00.py
This commit is contained in:
parent
3a2beffb41
commit
553be55ce0
2
gps00.py
2
gps00.py
@ -35,7 +35,7 @@ def convert_to_decimal(coord, direction):
|
|||||||
|
|
||||||
def parse_gps_data(gps_string):
|
def parse_gps_data(gps_string):
|
||||||
parts = gps_string.split(',')
|
parts = gps_string.split(',')
|
||||||
if len(parts) < 6:
|
if len(parts) < 8:
|
||||||
return "Invalid GPS data"
|
return "Invalid GPS data"
|
||||||
|
|
||||||
lat = convert_to_decimal(parts[0], parts[1])
|
lat = convert_to_decimal(parts[0], parts[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user