diff --git a/src/nmeaparser.cpp b/src/nmeaparser.cpp index 0792b457..9b88bc56 100644 --- a/src/nmeaparser.cpp +++ b/src/nmeaparser.cpp @@ -313,7 +313,7 @@ bool NMEAParser::readGGA(const char *line, int len) return false; break; case 3: - if (!readNS(vp, lp - vp, lon)) + if (!readNS(vp, lp - vp, lat)) return false; break; case 4: