Skip to content

Commit 4604029

Browse files
Slight tightening of new Glonass support
1 parent a3cb8a1 commit 4604029

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

TinyGPS++.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,9 @@ bool TinyGPSPlus::endOfTermHandler()
209209
// the first term determines the sentence type
210210
if (curTermNumber == 0)
211211
{
212-
if (!strcmp(term, _GPRMCterm))
212+
if (!strcmp(term, _GPRMCterm) || !strcmp(term, _GNRMCterm))
213213
curSentenceType = GPS_SENTENCE_GPRMC;
214-
else if (!strcmp(term, _GNRMCterm))
215-
curSentenceType = GPS_SENTENCE_GPRMC;
216-
else if (!strcmp(term, _GPGGAterm))
217-
curSentenceType = GPS_SENTENCE_GPGGA;
218-
else if (!strcmp(term, _GNGGAterm))
214+
else if (!strcmp(term, _GPGGAterm) || !strcmp(term, _GNGGAterm))
219215
curSentenceType = GPS_SENTENCE_GPGGA;
220216
else
221217
curSentenceType = GPS_SENTENCE_OTHER;

0 commit comments

Comments
 (0)