diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-07-30 10:17:45 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-07-30 10:17:45 +0300 |
commit | 7c5ef6000bdeebfa8d51c0ead656ea554f1eb882 (patch) | |
tree | 170bd0a4bc3f8282d6a97f16498b356a64b2f925 /src/GCodes/GCodes.cpp | |
parent | 7b0dde7831f35450b6c5c077b00821b118eb9570 (diff) | |
parent | d7fd1866ffbfbb87229fa89ae2c7add48307cd8a (diff) |
Merge branch 'v3-chrishamm' into 3.4-input-shaping
Diffstat (limited to 'src/GCodes/GCodes.cpp')
-rw-r--r-- | src/GCodes/GCodes.cpp | 12 |
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 |