From 9ea8c5a4b6bd97e75ed8fc8ff08cd113bad7633f Mon Sep 17 00:00:00 2001 From: David Crocker Date: Thu, 26 Nov 2020 09:54:48 +0000 Subject: File missed from previous commit --- src/GCodes/GCodeBuffer/StringParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GCodes/GCodeBuffer') diff --git a/src/GCodes/GCodeBuffer/StringParser.cpp b/src/GCodes/GCodeBuffer/StringParser.cpp index 586b4c3d..147f17b2 100644 --- a/src/GCodes/GCodeBuffer/StringParser.cpp +++ b/src/GCodes/GCodeBuffer/StringParser.cpp @@ -897,7 +897,7 @@ size_t StringParser::DataLength() const noexcept // Return true if the command being processed is the last one in this line of GCode bool StringParser::IsLastCommand() const noexcept { - return commandEnd == gcodeLineEnd; + return commandEnd >= gcodeLineEnd; // using >= here also covers the case where the buffer is empty and gcodeLineEnd has been set to zero } // Is 'c' in the G Code string? 'c' must be uppercase. -- cgit v1.2.3