This commit is contained in:
Rick Sellens 2020-01-29 13:23:02 -05:00
parent 1afe1df764
commit ebb09d0480
1 changed files with 2 additions and 2 deletions

View File

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