diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-09-06 14:46:33 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-09-06 14:46:33 +0300 |
commit | cc239f2a8e6b5441a65cbd6e10960da0624b7cfc (patch) | |
tree | 671d98d40219b796934019894493515453ebb8ef /src/GCodes/GCodes2.cpp | |
parent | 214214ed84a9ff1f809e567b836b62cdc42d391f (diff) |
Attemp fix for main loop timeout when tuning closed loop motor
Diffstat (limited to 'src/GCodes/GCodes2.cpp')
-rw-r--r-- | src/GCodes/GCodes2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GCodes/GCodes2.cpp b/src/GCodes/GCodes2.cpp index b4649035..0e7a1f9b 100644 --- a/src/GCodes/GCodes2.cpp +++ b/src/GCodes/GCodes2.cpp @@ -4758,6 +4758,8 @@ bool GCodes::HandleQcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx // This is called to deal with the result of processing a G- or M-code bool GCodes::HandleResult(GCodeBuffer& gb, GCodeResult rslt, const StringRef& reply, OutputBuffer *outBuf) noexcept { + gb.LatestMachineState().commandRepeated = (rslt == GCodeResult::notFinished); + if (outBuf != nullptr) { // We only ever have an OutputBuffer when rslt == GCodeResult::ok |