Fix StopPrint when used before the actual print starts.
This commit is contained in:
@@ -498,6 +498,10 @@ void AnycubicTouchscreenClass::PausePrint() {
|
|||||||
inline void AnycubicTouchscreenClass::StopPrint()
|
inline void AnycubicTouchscreenClass::StopPrint()
|
||||||
{
|
{
|
||||||
card.abortFilePrintSoon();
|
card.abortFilePrintSoon();
|
||||||
|
|
||||||
|
print_job_timer.stop();
|
||||||
|
thermalManager.disable_all_heaters();
|
||||||
|
thermalManager.zero_fan_speeds();
|
||||||
|
|
||||||
#ifdef ANYCUBIC_TFT_DEBUG
|
#ifdef ANYCUBIC_TFT_DEBUG
|
||||||
SERIAL_ECHOLNPGM("DEBUG: Stopped and cleared");
|
SERIAL_ECHOLNPGM("DEBUG: Stopped and cleared");
|
||||||
@@ -583,10 +587,6 @@ void AnycubicTouchscreenClass::ReheatNozzle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AnycubicTouchscreenClass::ParkAfterStop(){
|
void AnycubicTouchscreenClass::ParkAfterStop(){
|
||||||
|
|
||||||
print_job_timer.stop();
|
|
||||||
thermalManager.disable_all_heaters();
|
|
||||||
thermalManager.zero_fan_speeds();
|
|
||||||
|
|
||||||
queue.enqueue_now_P(PSTR("M84")); // disable stepper motors
|
queue.enqueue_now_P(PSTR("M84")); // disable stepper motors
|
||||||
queue.enqueue_now_P(PSTR("M27")); // force report of SD status
|
queue.enqueue_now_P(PSTR("M27")); // force report of SD status
|
||||||
|
Reference in New Issue
Block a user