|
@@ -2847,10 +2847,12 @@ inline void gcode_G28() {
|
2847
|
2847
|
saved_feedrate = feedrate;
|
2848
|
2848
|
feedrate = homing_feedrate[X_AXIS];
|
2849
|
2849
|
|
2850
|
|
- #if MIN_Z_HEIGHT_FOR_HOMING > 0
|
2851
|
|
- current_position[Z_AXIS] = MESH_HOME_SEARCH_Z + MIN_Z_HEIGHT_FOR_HOMING;
|
2852
|
|
- line_to_current_position();
|
2853
|
|
- #endif
|
|
2850
|
+ current_position[Z_AXIS] = MESH_HOME_SEARCH_Z
|
|
2851
|
+ #if MIN_Z_HEIGHT_FOR_HOMING > 0
|
|
2852
|
+ + MIN_Z_HEIGHT_FOR_HOMING
|
|
2853
|
+ #endif
|
|
2854
|
+ ;
|
|
2855
|
+ line_to_current_position();
|
2854
|
2856
|
|
2855
|
2857
|
current_position[X_AXIS] = x + home_offset[X_AXIS];
|
2856
|
2858
|
current_position[Y_AXIS] = y + home_offset[Y_AXIS];
|
|
@@ -4010,7 +4012,7 @@ inline void gcode_M42() {
|
4010
|
4012
|
if (Z_start_location < Z_RAISE_BEFORE_PROBING * 2.0)
|
4011
|
4013
|
do_blocking_move_to_z(Z_start_location);
|
4012
|
4014
|
|
4013
|
|
- do_blocking_move_to_xy(X_probe_location - X_PROBE_OFFSET_FROM_EXTRUDER, Y_probe_location - Y_PROBE_OFFSET_FROM_EXTRUDER);
|
|
4015
|
+ do_blocking_move_to_xy(X_probe_location - (X_PROBE_OFFSET_FROM_EXTRUDER), Y_probe_location - (Y_PROBE_OFFSET_FROM_EXTRUDER));
|
4014
|
4016
|
|
4015
|
4017
|
/**
|
4016
|
4018
|
* OK, do the initial probe to get us close to the bed.
|
|
@@ -4070,8 +4072,8 @@ inline void gcode_M42() {
|
4070
|
4072
|
while (angle < 0.0) // outside of this range. It looks like they behave correctly with
|
4071
|
4073
|
angle += 360.0; // numbers outside of the range, but just to be safe we clamp them.
|
4072
|
4074
|
|
4073
|
|
- X_current = X_probe_location - X_PROBE_OFFSET_FROM_EXTRUDER + cos(RADIANS(angle)) * radius;
|
4074
|
|
- Y_current = Y_probe_location - Y_PROBE_OFFSET_FROM_EXTRUDER + sin(RADIANS(angle)) * radius;
|
|
4075
|
+ X_current = X_probe_location - (X_PROBE_OFFSET_FROM_EXTRUDER) + cos(RADIANS(angle)) * radius;
|
|
4076
|
+ Y_current = Y_probe_location - (Y_PROBE_OFFSET_FROM_EXTRUDER) + sin(RADIANS(angle)) * radius;
|
4075
|
4077
|
|
4076
|
4078
|
#if DISABLED(DELTA)
|
4077
|
4079
|
X_current = constrain(X_current, X_MIN_POS, X_MAX_POS);
|
|
@@ -4109,7 +4111,7 @@ inline void gcode_M42() {
|
4109
|
4111
|
* height. This gets us back to the probe location at the same height that
|
4110
|
4112
|
* we have been running around the circle at.
|
4111
|
4113
|
*/
|
4112
|
|
- do_blocking_move_to_xy(X_probe_location - X_PROBE_OFFSET_FROM_EXTRUDER, Y_probe_location - Y_PROBE_OFFSET_FROM_EXTRUDER);
|
|
4114
|
+ do_blocking_move_to_xy(X_probe_location - (X_PROBE_OFFSET_FROM_EXTRUDER), Y_probe_location - (Y_PROBE_OFFSET_FROM_EXTRUDER));
|
4113
|
4115
|
if (deploy_probe_for_each_reading)
|
4114
|
4116
|
sample_set[n] = probe_pt(X_probe_location, Y_probe_location, Z_RAISE_BEFORE_PROBING, ProbeDeployAndStow, verbose_level);
|
4115
|
4117
|
else {
|