Skip to content

Commit

Permalink
Merge pull request #28 from nseidle/master
Browse files Browse the repository at this point in the history
Adding support for Glonass sentences
  • Loading branch information
mikalhart authored Apr 14, 2017
2 parents 242cd98 + ba91ede commit a3cb8a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TinyGPS++.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <stdlib.h>

#define _GPRMCterm "GPRMC"
#define _GNRMCterm "GNRMC"
#define _GPGGAterm "GPGGA"
#define _GNGGAterm "GNGGA"

TinyGPSPlus::TinyGPSPlus()
: parity(0)
Expand Down Expand Up @@ -209,8 +211,12 @@ bool TinyGPSPlus::endOfTermHandler()
{
if (!strcmp(term, _GPRMCterm))
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))
curSentenceType = GPS_SENTENCE_GPGGA;
else
curSentenceType = GPS_SENTENCE_OTHER;

Expand Down

0 comments on commit a3cb8a1

Please sign in to comment.