Disable Steppers after one Minute

This commit is contained in:
Knutwurst
2023-06-08 18:26:53 +02:00
parent de446f0520
commit dc28578f54
2 changed files with 8 additions and 8 deletions

View File

@@ -203,14 +203,14 @@
void AnycubicTouchscreenClass::PausePrint() {
#ifdef SDSUPPORT
if (isPrintingFromMedia() && mediaPrintingState != AMPRINTSTATE_STOP_REQUESTED && mediaPauseState == AMPAUSESTATE_NOT_PAUSED) {
mediaPrintingState = AMPRINTSTATE_PAUSE_REQUESTED;
mediaPauseState = AMPAUSESTATE_NOT_PAUSED; // need the userconfirm method to update pause state
SENDLINE_DBG_PGM("J05", "TFT Serial Debug: SD print pause started... J05"); // J05 printing pause
mediaPrintingState = AMPRINTSTATE_PAUSE_REQUESTED;
mediaPauseState = AMPAUSESTATE_NOT_PAUSED; // need the userconfirm method to update pause state
SENDLINE_DBG_PGM("J05", "TFT Serial Debug: SD print pause started... J05"); // J05 printing pause
// for some reason pausing the print doesn't retract the extruder so force a manual one here
injectCommands(F("G91\nG1 E-2 F1800\nG90"));
pausePrint();
}
// for some reason pausing the print doesn't retract the extruder so force a manual one here
injectCommands(F("G91\nG1 E-2 F1800\nG90"));
pausePrint();
}
#endif
}