Make sure steppers are stopped if on_halt interrupts a homing cycle
authorJim Morris <morris@wolfman.com>
Fri, 11 Dec 2015 01:19:29 +0000 (17:19 -0800)
committerJim Morris <morris@wolfman.com>
Fri, 11 Dec 2015 01:19:29 +0000 (17:19 -0800)
src/modules/tools/endstops/Endstops.cpp

index 9f714e3..8229393 100644 (file)
@@ -603,6 +603,12 @@ void Endstops::home(char axes_to_move)
         // cartesian/delta homing
         do_homing_cartesian(axes_to_move);
     }
+
+    // make sure all steppers are off (especially if aborted)
+    for ( int c = X_AXIS; c <= Z_AXIS; c++ ) {
+        STEPPER[c]->move(0, 0);
+    }
+
 }
 
 // Start homing sequences by response to GCode commands