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:
Diffstat (limited to 'src/GCodes/GCodes4.cpp')
-rw-r--r--src/GCodes/GCodes4.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/GCodes/GCodes4.cpp b/src/GCodes/GCodes4.cpp
index 4324b419..52ac4c03 100644
--- a/src/GCodes/GCodes4.cpp
+++ b/src/GCodes/GCodes4.cpp
@@ -1514,14 +1514,15 @@ void GCodes::RunStateMachine(GCodeBuffer& gb, const StringRef& reply) noexcept
HandleReply(gb, stateMachineResult, reply.c_str());
CheckForDeferredPause(gb);
+ }
+
#if HAS_SBC_INTERFACE
- if (reportPause)
- {
- fileGCode->Invalidate();
- reprap.GetSbcInterface().ReportPause();
- }
-#endif
+ if (reportPause)
+ {
+ fileGCode->Invalidate();
+ reprap.GetSbcInterface().ReportPause();
}
+#endif
}
// Do a manual probe. This is in its own function to reduce the amount of stack space needed by RunStateMachine(). See the comment at the top of that function.