diff --git a/src/Adafruit_GPS.h b/src/Adafruit_GPS.h index 987f91b..080c49d 100644 --- a/src/Adafruit_GPS.h +++ b/src/Adafruit_GPS.h @@ -253,12 +253,10 @@ private: const char *sources[7] = {"II", "WI", "GP", "PG", "GN", "P", "ZZZ"}; ///< valid source ids #ifdef NMEA_EXTENSIONS - const char - *sentences_parsed[21] = - { - "GGA", "GLL", "GSA", "RMC", "DBT", "HDM", "HDT", - "MDA", "MTW", "MWV", "RMB", "TOP", "TXT", "VHW", - "VLW", "VPW", "VWR", "WCV", "XTE", "ZZZ"}; ///< parseable sentence ids + const char *sentences_parsed[21] = {"GGA", "GLL", "GSA", "RMC", "DBT", "HDM", + "HDT", "MDA", "MTW", "MWV", "RMB", "TOP", + "TXT", "VHW", "VLW", "VPW", "VWR", "WCV", + "XTE", "ZZZ"}; ///< parseable sentence ids const char *sentences_known[15] = { "APB", "DPT", "GSV", "HDG", "MWD", "ROT", "RPM", "RSA", "VDR", "VTG", "ZDA", "ZZZ"}; ///< known, but not parseable diff --git a/src/NMEA_parse.cpp b/src/NMEA_parse.cpp index 68a8633..a6d89e7 100644 --- a/src/NMEA_parse.cpp +++ b/src/NMEA_parse.cpp @@ -174,16 +174,15 @@ bool Adafruit_GPS::parse(char *nmea) { VDOP = atof(p); // last before checksum } else if (!strcmp(thisSentence, "TOP")) { //*****************************TOP - // See: https://learn.adafruit.com/adafruit-ultimate-gps-featherwing/antenna-options - // There is an output sentence that will tell you the status of the - // antenna. $PGTOP,11,x where x is the status number. If x is 3 that means - // it is using the external antenna. If x is 2 it's using the internal - // antenna and if x is 1 there was an antenna short or problem. + // See: + // https://learn.adafruit.com/adafruit-ultimate-gps-featherwing/antenna-options + // There is an output sentence that will tell you the status of the + // antenna. $PGTOP,11,x where x is the status number. If x is 3 that means + // it is using the external antenna. If x is 2 it's using the internal p = strchr(p, ',') + 1; parseAntenna(p); } - #ifdef NMEA_EXTENSIONS // Sentences not required for basic GPS functionality else if (!strcmp(thisSentence, "APB")) { //*******************************APB // from Actisense NGW-1 from SH CP150C