Fail Check if sentence not recognized

Previous check would pass for unknown but properly formatted sentence.
This commit is contained in:
Rick Sellens 2020-01-29 19:44:05 -05:00
parent ebb09d0480
commit 84eaad66e4
1 changed files with 4 additions and 1 deletions

View File

@ -588,7 +588,10 @@ boolean Adafruit_GPS::check(char *nmea) {
if (snc) {
strcpy(thisSentence, snc);
thisCheck += NMEA_HAS_SENTENCE;
return false;
return false; // known but not parsed
} else {
parseStr(thisSentence, p, NMEA_MAX_SENTENCE_ID);
return false; // unknown
}
}
return true; // passed all the tests