|
@@ -3131,8 +3131,8 @@ inline void gcode_G28() {
|
3131
|
3131
|
#if ENABLED(DELTA)
|
3132
|
3132
|
delta_grid_spacing[0] = xGridSpacing;
|
3133
|
3133
|
delta_grid_spacing[1] = yGridSpacing;
|
3134
|
|
- float z_offset = zprobe_zoffset;
|
3135
|
|
- if (code_seen(axis_codes[Z_AXIS])) z_offset += code_value();
|
|
3134
|
+ float zoffset = zprobe_zoffset;
|
|
3135
|
+ if (code_seen(axis_codes[Z_AXIS])) zoffset += code_value();
|
3136
|
3136
|
#else // !DELTA
|
3137
|
3137
|
/**
|
3138
|
3138
|
* solve the plane equation ax + by + d = z
|
|
@@ -3222,7 +3222,7 @@ inline void gcode_G28() {
|
3222
|
3222
|
eqnAMatrix[probePointCounter + 2 * abl2] = 1;
|
3223
|
3223
|
indexIntoAB[xCount][yCount] = probePointCounter;
|
3224
|
3224
|
#else
|
3225
|
|
- bed_level[xCount][yCount] = measured_z + z_offset;
|
|
3225
|
+ bed_level[xCount][yCount] = measured_z + zoffset;
|
3226
|
3226
|
#endif
|
3227
|
3227
|
|
3228
|
3228
|
probePointCounter++;
|