From b14e2d41f44b258ae65814bfe6335c18d934c9d5 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Mon, 23 Jul 2018 08:28:56 +1000 Subject: [PATCH] Fix for stepper homing not completing. Fixes #152 --- speeduino/idle.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino/idle.ino b/speeduino/idle.ino index a605d3da..f16b260b 100644 --- a/speeduino/idle.ino +++ b/speeduino/idle.ino @@ -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