Compare commits

...

8 commits

Author SHA1 Message Date
dherrada
98c0c22041 Fixed discord invite link 2020-07-08 16:49:04 -04:00
dherrada
486e055d55
Revert version to right version 2020-06-11 13:56:52 -04:00
dherrada
a117badd4d
Merge pull request #47 from fvzeppelin/master
stability improvements
2020-06-08 17:35:24 -04:00
Frank von Zeppelin
6f4cd1c41b change version to 3.6.3 2020-06-08 22:08:55 +02:00
Frank von Zeppelin
10a4a02794 black'ed 2020-06-08 21:10:47 +02:00
Frank von Zeppelin
ed11af0270 fixes 2020-06-01 20:50:58 +02:00
dherrada
67b8715f2f
Merge pull request #45 from adafruit/dherrada-patch-2
Fix typo (Needs testing)
2020-05-07 16:30:35 -04:00
dherrada
c19da5b839
Fix typo 2020-05-07 16:10:21 -04:00
2 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@ Introduction
:alt: Documentation Status
.. image :: https://img.shields.io/discord/327254708534116352.svg
:target: https://discord.gg/nBQh6qu
:target: https://adafru.it/discord
:alt: Discord
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_GPS/workflows/Build%20CI/badge.svg

View file

@ -141,7 +141,7 @@ class GPS:
# return sentence
if data_type in (
b"GPGLL",
b"GNGGL",
b"GNGLL",
): # GLL, Geographic Position Latitude/Longitude
self._parse_gpgll(args)
elif data_type in (b"GPRMC", b"GNRMC"): # RMC, minimum location info
@ -260,7 +260,7 @@ class GPS:
def _parse_gpgll(self, args):
data = args.split(",")
if data is None or data[0] is None:
if data is None or data[0] is None or (data[0] == ""):
return # Unexpected number of params.
# Parse latitude and longitude.
@ -295,7 +295,7 @@ class GPS:
# Parse the arguments (everything after data type) for NMEA GPRMC
# minimum location fix sentence.
data = args.split(",")
if data is None or len(data) < 11 or data[0] is None:
if data is None or len(data) < 11 or data[0] is None or (data[0] == ""):
return # Unexpected number of params.
# Parse fix time.
time_utc = int(_parse_float(data[0]))
@ -374,7 +374,7 @@ class GPS:
# Parse the arguments (everything after data type) for NMEA GPGGA
# 3D location fix sentence.
data = args.split(",")
if data is None or len(data) != 14:
if data is None or len(data) != 14 or (data[0] == ""):
return # Unexpected number of params.
# Parse fix time.
time_utc = int(_parse_float(data[0]))
@ -421,7 +421,7 @@ class GPS:
def _parse_gpgsa(self, args):
data = args.split(",")
if data is None:
if data is None or (data[0] == ""):
return # Unexpected number of params
# Parse selection mode
@ -444,7 +444,7 @@ class GPS:
# Parse the arguments (everything after data type) for NMEA GPGGA
# 3D location fix sentence.
data = args.split(",")
if data is None:
if data is None or (data[0] == ""):
return # Unexpected number of params.
# Parse number of messages