diff --git a/src/TinyGPS++.cpp b/src/TinyGPS++.cpp index 93fa809..6b44698 100644 --- a/src/TinyGPS++.cpp +++ b/src/TinyGPS++.cpp @@ -37,6 +37,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define _GAGGAterm "GAGGA" #define _GLRMCterm "GLRMC" #define _GLGGAterm "GLGGA" +#define _BDRMCterm "BDRMC" +#define _BDGGAterm "BDGGA" TinyGPSPlus::TinyGPSPlus() : parity(0) @@ -304,9 +306,9 @@ bool TinyGPSPlus::endOfTermHandler(bool termIsNotEmpty) // the first term determines the sentence type if (curTermNumber == 0) { - if (!strcmp(term, _GPRMCterm) || !strcmp(term, _GNRMCterm) || !strcmp(term, _GARMCterm) || !strcmp(term, _GLRMCterm)) + if (!strcmp(term, _GPRMCterm) || !strcmp(term, _GNRMCterm) || !strcmp(term, _GARMCterm) || !strcmp(term, _GLRMCterm) || !strcmp(term, _BDRMCterm)) curSentenceType = GPS_SENTENCE_GPRMC; - else if (!strcmp(term, _GPGGAterm) || !strcmp(term, _GNGGAterm) || !strcmp(term, _GAGGAterm) || !strcmp(term, _GLRMCterm)) + else if (!strcmp(term, _GPGGAterm) || !strcmp(term, _GNGGAterm) || !strcmp(term, _GAGGAterm) || !strcmp(term, _GLGGAterm) || !strcmp(term, _BDGGAterm)) curSentenceType = GPS_SENTENCE_GPGGA; else if (!strcmp(term, _GPGSVterm)) curSentenceType = GPS_SENTENCE_GPGSV;