|
@ -6344,8 +6344,23 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) { |
|
|
if (max_inactive_time && ms > previous_cmd_ms + max_inactive_time) kill(PSTR(MSG_KILLED)); |
|
|
if (max_inactive_time && ms > previous_cmd_ms + max_inactive_time) kill(PSTR(MSG_KILLED)); |
|
|
|
|
|
|
|
|
if (stepper_inactive_time && ms > previous_cmd_ms + stepper_inactive_time |
|
|
if (stepper_inactive_time && ms > previous_cmd_ms + stepper_inactive_time |
|
|
&& !ignore_stepper_queue && !blocks_queued()) |
|
|
&& !ignore_stepper_queue && !blocks_queued()) { |
|
|
disable_all_steppers(); |
|
|
#if DISABLE_X == true |
|
|
|
|
|
disable_x(); |
|
|
|
|
|
#endif |
|
|
|
|
|
#if DISABLE_Y == true |
|
|
|
|
|
disable_y(); |
|
|
|
|
|
#endif |
|
|
|
|
|
#if DISABLE_Z == true |
|
|
|
|
|
disable_z(); |
|
|
|
|
|
#endif |
|
|
|
|
|
#if DISABLE_E == true |
|
|
|
|
|
disable_e0(); |
|
|
|
|
|
disable_e1(); |
|
|
|
|
|
disable_e2(); |
|
|
|
|
|
disable_e3(); |
|
|
|
|
|
#endif |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#ifdef CHDK // Check if pin should be set to LOW after M240 set it to HIGH
|
|
|
#ifdef CHDK // Check if pin should be set to LOW after M240 set it to HIGH
|
|
|
if (chdkActive && ms > chdkHigh + CHDK_DELAY) { |
|
|
if (chdkActive && ms > chdkHigh + CHDK_DELAY) { |
|
|