Browse Source

Use card.stopSDPrint() for completeness

pull/1/head
Scott Lahteine 6 years ago
parent
commit
4f72e041f2
  1. 3
      Marlin/src/module/endstops.cpp
  2. 4
      Marlin/src/sd/cardreader.cpp

3
Marlin/src/module/endstops.cpp

@ -358,8 +358,7 @@ void Endstops::event_handler() {
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) && ENABLED(SDSUPPORT)
if (planner.abort_on_endstop_hit) {
card.sdprinting = false;
card.closefile();
card.stopSDPrint();
quickstop_stepper();
thermalManager.disable_all_heaters();
print_job_timer.stop();

4
Marlin/src/sd/cardreader.cpp

@ -326,7 +326,7 @@ void CardReader::initsd() {
}
void CardReader::release() {
sdprinting = false;
stopSDPrint();
cardOK = false;
}
@ -947,7 +947,7 @@ void CardReader::printingHasFinished() {
startFileprint();
}
else {
sdprinting = false;
stopSDPrint();
#if ENABLED(POWER_LOSS_RECOVERY)
removeJobRecoveryFile();

Loading…
Cancel
Save