diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-02-25 16:19:35 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-02-25 16:19:35 +0300 |
commit | a26404916623bbf94398db9929e220431b2bbf72 (patch) | |
tree | 529b79a1331e9dba1392c6d8b5c86047644a2a42 /src/GCodes/GCodeBuffer/StringParser.cpp | |
parent | aa8127fcee77c1de98bf914d9eaaf67a6f717db2 (diff) |
M409 messages are no longer exempted from requiring CRCs
Diffstat (limited to 'src/GCodes/GCodeBuffer/StringParser.cpp')
-rw-r--r-- | src/GCodes/GCodeBuffer/StringParser.cpp | 2 |
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: |