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-06 14:46:33 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-09-06 14:46:33 +0300
commitcc239f2a8e6b5441a65cbd6e10960da0624b7cfc (patch)
tree671d98d40219b796934019894493515453ebb8ef /src/GCodes/GCodes2.cpp
parent214214ed84a9ff1f809e567b836b62cdc42d391f (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.cpp2
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