Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-09-14 18:04:57 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-09-14 18:04:57 +0300
commitc7ef2b9b0afa951633bc8ae6dbb96be9af44c14b (patch)
tree1c58c89924841b836728dd4a75a8a25c62bf0ced
parentc81d175f0419cbd813e7afd944af4eb273a8ed3b (diff)
Reinstate the discarding of GCode lines with bad or missing checksums3.3-dev
-rw-r--r--src/GCodes/GCodeBuffer/StringParser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GCodes/GCodeBuffer/StringParser.cpp b/src/GCodes/GCodeBuffer/StringParser.cpp
index 4c89a853..c4ac617f 100644
--- a/src/GCodes/GCodeBuffer/StringParser.cpp
+++ b/src/GCodes/GCodeBuffer/StringParser.cpp
@@ -294,6 +294,11 @@ bool StringParser::LineFinished() noexcept
{
debugPrintf("%s%s: %s\n", gb.GetChannel().ToString(), ((badChecksum) ? "(bad-csum)" : (missingChecksum) ? "(no-csum)" : ""), gb.buffer);
}
+ if (badChecksum || missingChecksum)
+ {
+ Init();
+ return false;
+ }
}
commandStart = 0;