Make sure stepper homing completes with 0 rpm

This commit is contained in:
Josh Stewart 2017-11-27 17:39:53 +11:00
parent d26c5298a3
commit 6ba1e4f946
1 changed files with 5 additions and 2 deletions

View File

@ -393,8 +393,11 @@ static inline void disableIdle()
}
else if ( (configPage3.iacAlgorithm == IAC_ALGORITHM_STEP_CL) || (configPage3.iacAlgorithm == IAC_ALGORITHM_STEP_OL) )
{
digitalWrite(pinStepperEnable, HIGH); //Disable the DRV8825
idleStepper.targetIdleStep = idleStepper.curIdleStep; //Don't try to move anymore
if( isStepperHomed() == true )
{
digitalWrite(pinStepperEnable, HIGH); //Disable the DRV8825
idleStepper.targetIdleStep = idleStepper.curIdleStep; //Don't try to move anymore
}
}
}