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
path: root/src
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-02-25 17:56:05 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-02-25 17:56:05 +0300
commitbc6baf74d1f8e2668bdc1e394a640826e98eccc5 (patch)
tree2721dbcd67d0e544172ee2f442c78b333ae30a14 /src
parentbf921500a6138a57a3a54e1dfdae9f97924bb165 (diff)
Shut down cleanly before resetting when commanded by SBC
Diffstat (limited to 'src')
-rw-r--r--src/SBC/SbcInterface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SBC/SbcInterface.cpp b/src/SBC/SbcInterface.cpp
index 56130757..a81530d0 100644
--- a/src/SBC/SbcInterface.cpp
+++ b/src/SBC/SbcInterface.cpp
@@ -212,6 +212,7 @@ void SbcInterface::ExchangeData() noexcept
// Reset the controller
case SbcRequest::Reset:
+ reprap.EmergencyStop(); // turn off heaters and motors, tell expansion boards to reset
SoftwareReset(SoftwareResetReason::user);
break;