zprobe_offset => probe_offset
This commit is contained in:
@@ -49,8 +49,8 @@ void GcodeSuite::G42() {
|
||||
if (hasJ) destination[Y_AXIS] = _GET_MESH_Y(iy);
|
||||
#if HAS_BED_PROBE
|
||||
if (parser.boolval('P')) {
|
||||
if (hasI) destination[X_AXIS] -= zprobe_offset[X_AXIS];
|
||||
if (hasJ) destination[Y_AXIS] -= zprobe_offset[Y_AXIS];
|
||||
if (hasI) destination[X_AXIS] -= probe_offset[X_AXIS];
|
||||
if (hasJ) destination[Y_AXIS] -= probe_offset[Y_AXIS];
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -947,8 +947,8 @@ G29_TYPE GcodeSuite::G29() {
|
||||
planner.leveling_active = false;
|
||||
|
||||
// Use the last measured distance to the bed, if possible
|
||||
if ( NEAR(current_position[X_AXIS], xProbe - zprobe_offset[X_AXIS])
|
||||
&& NEAR(current_position[Y_AXIS], yProbe - zprobe_offset[Y_AXIS])
|
||||
if ( NEAR(current_position[X_AXIS], xProbe - probe_offset[X_AXIS])
|
||||
&& NEAR(current_position[Y_AXIS], yProbe - probe_offset[Y_AXIS])
|
||||
) {
|
||||
const float simple_z = current_position[Z_AXIS] - measured_z;
|
||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Probed Z", simple_z, " Matrix Z", converted[Z_AXIS], " Discrepancy ", simple_z - converted[Z_AXIS]);
|
||||
|
Reference in New Issue
Block a user