Respect DISABLE_AXIS settings (PR#2216)
when DEFAULT_STEPPER_DEACTIVE_TIME is over instead of simply turn off all.
This commit is contained in:
parent
c85a486445
commit
45642b7fe8
1 changed files with 17 additions and 2 deletions
|
@ -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 (stepper_inactive_time && ms > previous_cmd_ms + stepper_inactive_time
|
||||
&& !ignore_stepper_queue && !blocks_queued())
|
||||
disable_all_steppers();
|
||||
&& !ignore_stepper_queue && !blocks_queued()) {
|
||||
#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
|
||||
if (chdkActive && ms > chdkHigh + CHDK_DELAY) {
|
||||
|
|
Reference in a new issue