summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2016-01-14 23:10:48 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2016-01-14 23:10:48 +1100
commitfeafc75f10ee241ad4ddce9bb2d0b5067e545b8b (patch)
tree00a9b3c14f3fa96ddc9e831a688268130d17bb8f
parent1ceaa48c3d54f071239d7a6da40ba78ac747eae5 (diff)
download2021-arduino-obd-feafc75f10ee241ad4ddce9bb2d0b5067e545b8b.tar.gz
2021-arduino-obd-feafc75f10ee241ad4ddce9bb2d0b5067e545b8b.tar.bz2
2021-arduino-obd-feafc75f10ee241ad4ddce9bb2d0b5067e545b8b.zip
Fix UBX-M8030 GPS issue
-rw-r--r--libraries/TinyGPS/TinyGPS.cpp8
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;
}