diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-06-09 11:34:15 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-06-09 11:34:15 +0300 |
commit | 92b7d130d974b6b62780e68d32717a7c6567db6e (patch) | |
tree | c39fce030fb0d6c3f31b251ad337ad9dcfdc18dd | |
parent | eb2e814a76e92405a77267fb71db243f6b6e53d0 (diff) |
Wait until code queue empty before changing tool
-rw-r--r-- | src/GCodes/GCodes2.cpp | 2 |
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; } |