diff options
-rw-r--r-- | libraries/TinyGPS/TinyGPS.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/TinyGPS/TinyGPS.cpp b/libraries/TinyGPS/TinyGPS.cpp index 00a683c..a3f5a1e 100644 --- a/libraries/TinyGPS/TinyGPS.cpp +++ b/libraries/TinyGPS/TinyGPS.cpp @@ -285,8 +285,12 @@ long TinyGPS::gpsatol(const char *str) int TinyGPS::gpsstrcmp(const char *str1, const char *str2) { - while (*str1 && *str1 == *str2) - ++str1, ++str2; + if (*str1 == *str2) { + str1 += 2; + str2 += 2; + while (*str1 && *str1 == *str2) + ++str1, ++str2; + } return *str1; } |