Merge pull request #4200 from leptun/fix_stepper_inactivity_timeout
Fix stepper inactivity timeout
This commit is contained in:
commit
d8ec526e67
|
|
@ -9299,18 +9299,14 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s
|
||||||
get_command();
|
get_command();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(previous_millis_cmd.expired(max_inactive_time))
|
if(max_inactive_time && previous_millis_cmd.expired(max_inactive_time))
|
||||||
if(max_inactive_time)
|
kill(PSTR("Inactivity Shutdown"));
|
||||||
kill(PSTR("Inactivity Shutdown"));
|
if(stepper_inactive_time && previous_millis_cmd.expired(stepper_inactive_time)) {
|
||||||
if(stepper_inactive_time) {
|
if(blocks_queued() == false && ignore_stepper_queue == false) {
|
||||||
if(previous_millis_cmd.expired(stepper_inactive_time))
|
disable_x();
|
||||||
{
|
disable_y();
|
||||||
if(blocks_queued() == false && ignore_stepper_queue == false) {
|
disable_z();
|
||||||
disable_x();
|
disable_e0();
|
||||||
disable_y();
|
|
||||||
disable_z();
|
|
||||||
disable_e0();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue