This commit is contained in:
Rick Sellens 2020-01-29 13:10:43 -05:00
parent 8ae6a7b75a
commit 1afe1df764
3 changed files with 11 additions and 12 deletions

View File

@ -34,7 +34,7 @@
#define NMEA_EXTENSIONS ///< if defined will include more NMEA sentences
#endif
#else
#if(NMEA_EXTRAS > 0)
#if (NMEA_EXTRAS > 0)
#define NMEA_EXTENSIONS ///< if defined will include more NMEA sentences
#endif
#endif
@ -260,8 +260,7 @@ private:
"APB", "DPT", "GSV", "HDG", "MWD", "ROT",
"RPM", "RSA", "VDR", "VTG", "ZDA", "ZZZ"}; ///< known, but not parseable
#else // make the lists short to save memory
const char
*sentences_parsed[5] = {"GGA", "GLL", "GSA", "RMC",
const char *sentences_parsed[5] = {"GGA", "GLL", "GSA", "RMC",
"ZZZ"}; ///< parseable sentence ids
const char *sentences_known[4] = {"DBT", "HDM", "HDT",
"ZZZ"}; ///< known, but not parseable

View File

@ -438,7 +438,7 @@ void Adafruit_GPS::removeHistory(nmea_index_t idx) {
/**************************************************************************/
void Adafruit_GPS::showDataValue(nmea_index_t idx, int n) {
Serial.print("idx: ");
if(idx < 10)
if (idx < 10)
Serial.print(" ");
Serial.print(idx);
Serial.print(", ");

View File

@ -700,9 +700,9 @@ bool Adafruit_GPS::parseCoord(char *pStart, nmea_float_t *angleDegrees,
// reject angles that are out of range
if (nsew == 'N' || nsew == 'S')
if(abs(deg) > 90)
if (abs(deg) > 90)
return false;
if(abs(deg) > 180)
if (abs(deg) > 180)
return false;
// store in locations passed as args