From 460402900e448830a36515519313fa8e8480be97 Mon Sep 17 00:00:00 2001 From: Mikal Hart Date: Thu, 13 Apr 2017 23:02:29 -0500 Subject: [PATCH] Slight tightening of new Glonass support --- TinyGPS++.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/TinyGPS++.cpp b/TinyGPS++.cpp index 01d3da4..296f7a0 100644 --- a/TinyGPS++.cpp +++ b/TinyGPS++.cpp @@ -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;