mirror of
https://github.com/adafruit/Adafruit_GPS.git
synced 2026-07-28 04:08:15 +00:00
Clear thisSentence and thisSource at start of each check
that way previous sentence identifiers won't bleed through on failure.
This commit is contained in:
@@ -545,6 +545,7 @@ bool Adafruit_GPS::parse(char *nmea) {
|
||||
/**************************************************************************/
|
||||
boolean Adafruit_GPS::check(char *nmea) {
|
||||
thisCheck = 0; // new check
|
||||
*thisSentence = *thisSource = 0;
|
||||
if (*nmea != '$' && *nmea != '!')
|
||||
return false; // doesn't start with $ or !
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user