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

@@ -1117,7 +1117,7 @@
* Set DISABLE_INACTIVE_? 'true' to shut down axis steppers after an idle period. * 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. * 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_X true
#define DISABLE_INACTIVE_Y true #define DISABLE_INACTIVE_Y true
#define DISABLE_INACTIVE_Z true // Set 'false' if the nozzle could fall onto your printed part! #define DISABLE_INACTIVE_Z true // Set 'false' if the nozzle could fall onto your printed part!

View File

@@ -203,14 +203,14 @@
void AnycubicTouchscreenClass::PausePrint() { void AnycubicTouchscreenClass::PausePrint() {
#ifdef SDSUPPORT #ifdef SDSUPPORT
if (isPrintingFromMedia() && mediaPrintingState != AMPRINTSTATE_STOP_REQUESTED && mediaPauseState == AMPAUSESTATE_NOT_PAUSED) { if (isPrintingFromMedia() && mediaPrintingState != AMPRINTSTATE_STOP_REQUESTED && mediaPauseState == AMPAUSESTATE_NOT_PAUSED) {
mediaPrintingState = AMPRINTSTATE_PAUSE_REQUESTED; mediaPrintingState = AMPRINTSTATE_PAUSE_REQUESTED;
mediaPauseState = AMPAUSESTATE_NOT_PAUSED; // need the userconfirm method to update pause state 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 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 // 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")); injectCommands(F("G91\nG1 E-2 F1800\nG90"));
pausePrint(); pausePrint();
} }
#endif #endif
} }