From 84eaad66e4a6199439b871a37613c919545b3a5c Mon Sep 17 00:00:00 2001 From: Rick Sellens Date: Wed, 29 Jan 2020 19:44:05 -0500 Subject: [PATCH] Fail Check if sentence not recognized Previous check would pass for unknown but properly formatted sentence. --- src/NMEA_parse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NMEA_parse.cpp b/src/NMEA_parse.cpp index 822fc57..942d198 100644 --- a/src/NMEA_parse.cpp +++ b/src/NMEA_parse.cpp @@ -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