|
@@ -6076,18 +6076,9 @@ inline void gcode_M400() { stepper.synchronize(); }
|
6076
|
6076
|
|
6077
|
6077
|
void quickstop_stepper() {
|
6078
|
6078
|
stepper.quick_stop();
|
6079
|
|
- #if DISABLED(DELTA) && DISABLED(SCARA)
|
|
6079
|
+ #if DISABLED(SCARA)
|
6080
|
6080
|
stepper.synchronize();
|
6081
|
|
- #if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
6082
|
|
- vector_3 pos = planner.adjusted_position(); // values directly from steppers...
|
6083
|
|
- current_position[X_AXIS] = pos.x;
|
6084
|
|
- current_position[Y_AXIS] = pos.y;
|
6085
|
|
- current_position[Z_AXIS] = pos.z;
|
6086
|
|
- #else
|
6087
|
|
- current_position[X_AXIS] = stepper.get_axis_position_mm(X_AXIS);
|
6088
|
|
- current_position[Y_AXIS] = stepper.get_axis_position_mm(Y_AXIS);
|
6089
|
|
- current_position[Z_AXIS] = stepper.get_axis_position_mm(Z_AXIS);
|
6090
|
|
- #endif
|
|
6081
|
+ set_current_from_steppers();
|
6091
|
6082
|
sync_plan_position(); // ...re-apply to planner position
|
6092
|
6083
|
#endif
|
6093
|
6084
|
}
|