Skip to content

Commit

Permalink
Slight tightening of new Glonass support
Browse files Browse the repository at this point in the history
  • Loading branch information
mikalhart-intel committed Apr 14, 2017
1 parent a3cb8a1 commit 4604029
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions TinyGPS++.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,9 @@ bool TinyGPSPlus::endOfTermHandler()
// the first term determines the sentence type
if (curTermNumber == 0)
{
if (!strcmp(term, _GPRMCterm))
if (!strcmp(term, _GPRMCterm) || !strcmp(term, _GNRMCterm))
curSentenceType = GPS_SENTENCE_GPRMC;
else if (!strcmp(term, _GNRMCterm))
curSentenceType = GPS_SENTENCE_GPRMC;
else if (!strcmp(term, _GPGGAterm))
curSentenceType = GPS_SENTENCE_GPGGA;
else if (!strcmp(term, _GNGGAterm))
else if (!strcmp(term, _GPGGAterm) || !strcmp(term, _GNGGAterm))
curSentenceType = GPS_SENTENCE_GPGGA;
else
curSentenceType = GPS_SENTENCE_OTHER;
Expand Down

0 comments on commit 4604029

Please sign in to comment.