Add quickstop_stepper to update current position with stepper.quick_stop()

This commit is contained in:
Scott Lahteine
2016-07-06 12:00:28 -07:00
parent ecffe92e20
commit 834ad14c8d
5 changed files with 12 additions and 23 deletions

View File

@ -186,10 +186,7 @@ void Endstops::report_state() {
if (stepper.abort_on_endstop_hit) {
card.sdprinting = false;
card.closefile();
stepper.quick_stop();
#if DISABLED(DELTA) && DISABLED(SCARA)
set_current_position_from_planner();
#endif
quickstop_stepper();
thermalManager.disable_all_heaters(); // switch off all heaters.
}
#endif