We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3cb8a1 commit 4604029Copy full SHA for 4604029
TinyGPS++.cpp
@@ -209,13 +209,9 @@ bool TinyGPSPlus::endOfTermHandler()
209
// the first term determines the sentence type
210
if (curTermNumber == 0)
211
{
212
- if (!strcmp(term, _GPRMCterm))
+ if (!strcmp(term, _GPRMCterm) || !strcmp(term, _GNRMCterm))
213
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))
+ else if (!strcmp(term, _GPGGAterm) || !strcmp(term, _GNGGAterm))
219
curSentenceType = GPS_SENTENCE_GPGGA;
220
else
221
curSentenceType = GPS_SENTENCE_OTHER;
0 commit comments