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-06-09 11:34:15 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-06-09 11:34:15 +0300
commit92b7d130d974b6b62780e68d32717a7c6567db6e (patch)
treec39fce030fb0d6c3f31b251ad337ad9dcfdc18dd
parenteb2e814a76e92405a77267fb71db243f6b6e53d0 (diff)
Wait until code queue empty before changing tool
-rw-r--r--src/GCodes/GCodes2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GCodes/GCodes2.cpp b/src/GCodes/GCodes2.cpp
index 9f50364f..ebca723f 100644
--- a/src/GCodes/GCodes2.cpp
+++ b/src/GCodes/GCodes2.cpp
@@ -4673,7 +4673,7 @@ bool GCodes::HandleTcode(GCodeBuffer& gb, const StringRef& reply)
if (seen)
{
- if (!LockMovementAndWaitForStandstill(gb))
+ if (!LockMovementAndWaitForStandstill(gb) || !IsCodeQueueIdle())
{
return false;
}