Disable Steppers after one Minute
This commit is contained in:
@@ -1117,7 +1117,7 @@
|
||||
* Set DISABLE_INACTIVE_? 'true' to shut down axis steppers after an idle period.
|
||||
* The Deactive Time can be overridden with M18 and M84. Set to 0 for No Timeout.
|
||||
*/
|
||||
#define DEFAULT_STEPPER_DEACTIVE_TIME 180
|
||||
#define DEFAULT_STEPPER_DEACTIVE_TIME 60
|
||||
#define DISABLE_INACTIVE_X true
|
||||
#define DISABLE_INACTIVE_Y true
|
||||
#define DISABLE_INACTIVE_Z true // Set 'false' if the nozzle could fall onto your printed part!
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user