diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2016-01-14 23:10:48 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2016-01-14 23:10:48 +1100 |
commit | feafc75f10ee241ad4ddce9bb2d0b5067e545b8b (patch) | |
tree | 00a9b3c14f3fa96ddc9e831a688268130d17bb8f /libraries/TinyGPS | |
parent | 1ceaa48c3d54f071239d7a6da40ba78ac747eae5 (diff) | |
download | 2021-arduino-obd-feafc75f10ee241ad4ddce9bb2d0b5067e545b8b.tar.gz 2021-arduino-obd-feafc75f10ee241ad4ddce9bb2d0b5067e545b8b.tar.bz2 2021-arduino-obd-feafc75f10ee241ad4ddce9bb2d0b5067e545b8b.zip |
Fix UBX-M8030 GPS issue
Diffstat (limited to 'libraries/TinyGPS')
-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; } |