Abort SD followup
This commit is contained in:
parent
d5c1c72a76
commit
61225e685d
1 changed files with 24 additions and 20 deletions
|
@ -378,27 +378,31 @@ void startOrResumeJob() {
|
||||||
print_job_timer.start();
|
print_job_timer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
void abortSDPrinting() {
|
#if ENABLED(SDSUPPORT)
|
||||||
card.stopSDPrint(
|
|
||||||
#if SD_RESORT
|
void abortSDPrinting() {
|
||||||
true
|
card.stopSDPrint(
|
||||||
|
#if SD_RESORT
|
||||||
|
true
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
queue.clear();
|
||||||
|
quickstop_stepper();
|
||||||
|
print_job_timer.stop();
|
||||||
|
#if DISABLED(SD_ABORT_NO_COOLDOWN)
|
||||||
|
thermalManager.disable_all_heaters();
|
||||||
#endif
|
#endif
|
||||||
);
|
thermalManager.zero_fan_speeds();
|
||||||
queue.clear();
|
wait_for_heatup = false;
|
||||||
quickstop_stepper();
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||||
print_job_timer.stop();
|
card.removeJobRecoveryFile();
|
||||||
#if DISABLED(SD_ABORT_NO_COOLDOWN)
|
#endif
|
||||||
thermalManager.disable_all_heaters();
|
#ifdef EVENT_GCODE_SD_STOP
|
||||||
#endif
|
queue.inject_P(PSTR(EVENT_GCODE_SD_STOP));
|
||||||
thermalManager.zero_fan_speeds();
|
#endif
|
||||||
wait_for_heatup = false;
|
}
|
||||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
|
||||||
card.removeJobRecoveryFile();
|
#endif
|
||||||
#endif
|
|
||||||
#ifdef EVENT_GCODE_SD_STOP
|
|
||||||
queue.inject_P(PSTR(EVENT_GCODE_SD_STOP));
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manage several activities:
|
* Manage several activities:
|
||||||
|
|
Reference in a new issue