浏览代码

Rename z_offset local to zoffset

Scott Lahteine 9 年前
父节点
当前提交
cfcd3d7b3e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp 查看文件

@@ -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++;

正在加载...
取消
保存