Added else clause

If checksum wasn't there, parser was parsing anyways. If checksum is required we need to return false if not found.
This commit is contained in:
pdoddster 2016-08-02 09:18:09 -07:00 committed by GitHub
parent 0ffa9bce67
commit 7fc1b4e15f
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ boolean Adafruit_GPS::parse(char *nmea) {
// bad checksum :( // bad checksum :(
return false; return false;
} }
} else {
return false;
} }
int32_t degree; int32_t degree;
long minutes; long minutes;