Skip to content

Commit 393e00a

Browse files
committed
(amend)
1 parent 6f5ccbb commit 393e00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_LG290P_GNSS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ void LG290P::nmeaHandler(SEMP_PARSE_STATE *parse)
10041004
std::string sentence = (const char *)parse->buffer;
10051005
if (sentence.length() >= 2 && sentence.substr(sentence.length() - 2) == "\r\n")
10061006
// if (sentence.ends_with("\r\n"))
1007-
sentence.erase(sentence.size() - 2);
1007+
sentence.erase(sentence.length() - 2);
10081008

10091009
NmeaPacket nmea = NmeaPacket::FromString(sentence);
10101010
auto id = nmea.SentenceId();

0 commit comments

Comments
 (0)