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
path: root/src
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-02-25 16:19:35 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-02-25 16:19:35 +0300
commita26404916623bbf94398db9929e220431b2bbf72 (patch)
tree529b79a1331e9dba1392c6d8b5c86047644a2a42 /src
parentaa8127fcee77c1de98bf914d9eaaf67a6f717db2 (diff)
M409 messages are no longer exempted from requiring CRCs
Diffstat (limited to 'src')
-rw-r--r--src/GCodes/GCodeBuffer/StringParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GCodes/GCodeBuffer/StringParser.cpp b/src/GCodes/GCodeBuffer/StringParser.cpp
index bab919b7..7911a896 100644
--- a/src/GCodes/GCodeBuffer/StringParser.cpp
+++ b/src/GCodes/GCodeBuffer/StringParser.cpp
@@ -306,7 +306,7 @@ bool StringParser::LineFinished() noexcept
case 2:
case 3:
// If a CRC is required then the only command we allow without a CRC is M409
- badChecksum = (computedChecksum != declaredChecksum) || (crcRequired && !StringStartsWith(gb.buffer, "M409 "));
+ badChecksum = (crcRequired || computedChecksum != declaredChecksum);
break;
case 5: