1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 23:30:16 +00:00

Rename z_offset local to zoffset

This commit is contained in:
Scott Lahteine 2016-04-13 02:33:53 -07:00
parent 5fd20ecac3
commit cfcd3d7b3e

View File

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