diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-02-25 17:56:05 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-02-25 17:56:05 +0300 |
commit | bc6baf74d1f8e2668bdc1e394a640826e98eccc5 (patch) | |
tree | 2721dbcd67d0e544172ee2f442c78b333ae30a14 /src | |
parent | bf921500a6138a57a3a54e1dfdae9f97924bb165 (diff) |
Shut down cleanly before resetting when commanded by SBC
Diffstat (limited to 'src')
-rw-r--r-- | src/SBC/SbcInterface.cpp | 1 |
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; |