From 92b7d130d974b6b62780e68d32717a7c6567db6e Mon Sep 17 00:00:00 2001 From: David Crocker Date: Wed, 9 Jun 2021 09:34:15 +0100 Subject: Wait until code queue empty before changing tool --- src/GCodes/GCodes2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3