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/GCodes.cpp')
-rw-r--r--src/GCodes/GCodes.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/GCodes/GCodes.cpp b/src/GCodes/GCodes.cpp
index a4c36491..85e88c33 100644
--- a/src/GCodes/GCodes.cpp
+++ b/src/GCodes/GCodes.cpp
@@ -479,16 +479,10 @@ void GCodes::Spin() noexcept
#if HAS_LINUX_INTERFACE
- if (reprap.UsingLinuxInterface())
+ // Need to check if the print has been stopped by the SBC
+ if (reprap.UsingLinuxInterface() && reprap.GetLinuxInterface().HasPrintStopped())
{
- if (reprap.GetLinuxInterface().HasPrintStarted())
- {
- StartPrinting(true);
- }
- else if (reprap.GetLinuxInterface().HasPrintStopped())
- {
- StopPrint(reprap.GetLinuxInterface().GetPrintStopReason());
- }
+ StopPrint(reprap.GetLinuxInterface().GetPrintStopReason());
}
#endif