Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
- [Pytrack] Added listen for GPGLL signals as well
Browse files Browse the repository at this point in the history
  • Loading branch information
danspndl committed Oct 4, 2018
1 parent 93d6c92 commit dcaf12b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pybytes/pytrack/lib/L76GNSS.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def coordinates(self, debug=False):
break
nmea += self._read().lstrip(b'\n\n').rstrip(b'\n\n')
gngll_idx = nmea.find(b'GNGLL')
gpgll_idx = nmea.find(b'GPGLL')
if gngll_idx < 0 and gpgll_idx >= 0:
gngll_idx = gpgll_idx
if gngll_idx >= 0:
gngll = nmea[gngll_idx:]
e_idx = gngll.find(b'\r\n')
Expand Down
3 changes: 3 additions & 0 deletions pytrack/lib/L76GNSS.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def coordinates(self, debug=False):
break
nmea += self._read().lstrip(b'\n\n').rstrip(b'\n\n')
gngll_idx = nmea.find(b'GNGLL')
gpgll_idx = nmea.find(b'GPGLL')
if gngll_idx < 0 and gpgll_idx >= 0:
gngll_idx = gpgll_idx
if gngll_idx >= 0:
gngll = nmea[gngll_idx:]
e_idx = gngll.find(b'\r\n')
Expand Down

1 comment on commit dcaf12b

@danspndl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#80

Please sign in to comment.