diff options
-rw-r--r-- | src/GCodes/GCodes.cpp | 2 | ||||
-rw-r--r-- | src/Platform/Event.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/GCodes/GCodes.cpp b/src/GCodes/GCodes.cpp index 72ea8fb4..65ec9d22 100644 --- a/src/GCodes/GCodes.cpp +++ b/src/GCodes/GCodes.cpp @@ -558,7 +558,7 @@ bool GCodes::StartNextGCode(GCodeBuffer& gb, const StringRef& reply) noexcept { return DoFilePrint(gb, reply); } - else if (&gb == autoPauseGCode) + else if (&gb == autoPauseGCode && !gb.LatestMachineState().waitingForAcknowledgement) { if (Event::StartProcessing()) { diff --git a/src/Platform/Event.cpp b/src/Platform/Event.cpp index 5439bed7..d145ce66 100644 --- a/src/Platform/Event.cpp +++ b/src/Platform/Event.cpp @@ -92,9 +92,7 @@ inline Event::Event(Event *_ecv_null p_next, EventType et, uint16_t p_param, uin if (ep != nullptr && ep->isBeingProcessed) { vars.InsertNewParameter("D", ExpressionValue((int32_t)(ep->deviceNumber))); -#if SUPPORT_CAN_EXPANSION - vars.InsertNewParameter("B", ExpressionValue((int32_t)(ep->boardAddress))); -#endif + vars.InsertNewParameter("B", ExpressionValue((int32_t)(ep->boardAddress))); // always include B so that the same macros can be used on all Duets vars.InsertNewParameter("P", ExpressionValue((int32_t)(ep->param))); } } |