|
@@ -2657,7 +2657,7 @@ inline void gcode_G28() {
|
2657
|
2657
|
#ifdef DELTA
|
2658
|
2658
|
delta_grid_spacing[0] = xGridSpacing;
|
2659
|
2659
|
delta_grid_spacing[1] = yGridSpacing;
|
2660
|
|
- float z_offset = Z_PROBE_OFFSET_FROM_EXTRUDER;
|
|
2660
|
+ float z_offset = zprobe_zoffset;
|
2661
|
2661
|
if (code_seen(axis_codes[Z_AXIS])) z_offset += code_value();
|
2662
|
2662
|
#else // !DELTA
|
2663
|
2663
|
// solve the plane equation ax + by + d = z
|
|
@@ -5863,7 +5863,7 @@ void clamp_to_software_endstops(float target[3]) {
|
5863
|
5863
|
|
5864
|
5864
|
float negative_z_offset = 0;
|
5865
|
5865
|
#ifdef ENABLE_AUTO_BED_LEVELING
|
5866
|
|
- if (Z_PROBE_OFFSET_FROM_EXTRUDER < 0) negative_z_offset += Z_PROBE_OFFSET_FROM_EXTRUDER;
|
|
5866
|
+ if (zprobe_zoffset < 0) negative_z_offset += zprobe_zoffset;
|
5867
|
5867
|
if (home_offset[Z_AXIS] < 0) negative_z_offset += home_offset[Z_AXIS];
|
5868
|
5868
|
#endif
|
5869
|
5869
|
NOLESS(target[Z_AXIS], min_pos[Z_AXIS] + negative_z_offset);
|