Fix for stepper homing not completing. Fixes #152

This commit is contained in:
Josh Stewart 2018-07-23 08:28:56 +10:00
parent cfe1062dd2
commit b14e2d41f4
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ static inline void disableIdle()
else if ( (configPage6.iacAlgorithm == IAC_ALGORITHM_STEP_CL) || (configPage6.iacAlgorithm == IAC_ALGORITHM_STEP_OL) )
{
//Only disable the stepper motor if homing is completed
if( isStepperHomed() == true )
if( (checkForStepping() == false) && (isStepperHomed() == true) )
{
digitalWrite(pinStepperEnable, HIGH); //Disable the DRV8825
idleStepper.targetIdleStep = idleStepper.curIdleStep; //Don't try to move anymore