Make stepper shutdown after inactivity dependent

Make stepper shutdown after inactivity dependent on a new set of
#defines.
DISABLE_INACTIV_X
DISABLE_INACTIV_Y
DISABLE_INACTIV_Z
DISABLE_INACTIV_E

And make exemplaric Configuration.
Names can be discussed.

This makes the disabling of the steppers independent from the DISABLE_?
settings witch shut down the steppers immediately.
This commit is contained in:
AnHardt
2016-02-28 15:50:50 +01:00
parent 051325ccd7
commit b6e69e71ce
3 changed files with 13 additions and 7 deletions

View File

@ -6956,16 +6956,16 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
if (stepper_inactive_time && ms > previous_cmd_ms + stepper_inactive_time
&& !ignore_stepper_queue && !blocks_queued()) {
#if DISABLE_X == true
#if DISABLE_INACTIV_X == true
disable_x();
#endif
#if DISABLE_Y == true
#if DISABLE_INACTIV_Y == true
disable_y();
#endif
#if DISABLE_Z == true
#if DISABLE_INACTIV_Z == true
disable_z();
#endif
#if DISABLE_E == true
#if DISABLE_INACTIV_E == true
disable_e0();
disable_e1();
disable_e2();