From feafc75f10ee241ad4ddce9bb2d0b5067e545b8b Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Thu, 14 Jan 2016 23:10:48 +1100 Subject: Fix UBX-M8030 GPS issue --- libraries/TinyGPS/TinyGPS.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libraries/TinyGPS') 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; } -- cgit v1.2.3