Skip to content

fix bug where has_fix remained True even though the fix was lost #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions adafruit_gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def _parse_rmc(self, data):
return False # Unexpected number of params.
data = _parse_data({12: _RMC, 13: _RMC_4_1}[len(data)], data)
if data is None:
self.fix_quality = 0
return False # Params didn't parse

# UTC time of position and date
Expand Down Expand Up @@ -489,6 +490,7 @@ def _parse_gga(self, data):
return False # Unexpected number of params.
data = _parse_data(_GGA, data)
if data is None:
self.fix_quality = 0
return False # Params didn't parse

# UTC time of position
Expand Down Expand Up @@ -541,6 +543,7 @@ def _parse_gsa(self, talker, data):
else:
data = _parse_data(_GSA_4_11, data)
if data is None:
self.fix_quality_3d = 0
return False # Params didn't parse

talker = talker.decode("ascii")
Expand Down