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:
-rw-r--r--src/GCodes/GCodes.cpp2
-rw-r--r--src/Platform/Event.cpp4
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)));
}
}