HCoop
/
clinton
/
Smoothieware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db00af9
)
Make sure steppers are stopped if on_halt interrupts a homing cycle
author
Jim Morris
<morris@wolfman.com>
Fri, 11 Dec 2015 01:19:29 +0000
(17:19 -0800)
committer
Jim Morris
<morris@wolfman.com>
Fri, 11 Dec 2015 01:19:29 +0000
(17:19 -0800)
src/modules/tools/endstops/Endstops.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/tools/endstops/Endstops.cpp
b/src/modules/tools/endstops/Endstops.cpp
index
9f714e3
..
8229393
100644
(file)
--- a/
src/modules/tools/endstops/Endstops.cpp
+++ b/
src/modules/tools/endstops/Endstops.cpp
@@
-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