We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5ccbb commit 393e00aCopy full SHA for 393e00a
src/SparkFun_LG290P_GNSS.cpp
@@ -1004,7 +1004,7 @@ void LG290P::nmeaHandler(SEMP_PARSE_STATE *parse)
1004
std::string sentence = (const char *)parse->buffer;
1005
if (sentence.length() >= 2 && sentence.substr(sentence.length() - 2) == "\r\n")
1006
// if (sentence.ends_with("\r\n"))
1007
- sentence.erase(sentence.size() - 2);
+ sentence.erase(sentence.length() - 2);
1008
1009
NmeaPacket nmea = NmeaPacket::FromString(sentence);
1010
auto id = nmea.SentenceId();
0 commit comments