Browse Source

Fixing bilinear Z offset and G29 Z

The fix in #6251 for bilinear Z offset was flawed and broke the Z parameter of G29 for bilinear levelling.  This is reverted and a different fix is used for the double-addition of the Z-probe offset to the bilinear correction grid.
benlye 8 years ago
parent
commit
f1d50ac1dc
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      Marlin/Marlin_main.cpp

+ 2
- 5
Marlin/Marlin_main.cpp View File

4159
       #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4159
       #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4160
 
4160
 
4161
         zoffset = code_seen('Z') ? code_value_axis_units(Z_AXIS) : 0;
4161
         zoffset = code_seen('Z') ? code_value_axis_units(Z_AXIS) : 0;
4162
-        #if HAS_BED_PROBE
4163
-          zoffset += zprobe_zoffset;
4164
-        #endif
4165
 
4162
 
4166
       #endif
4163
       #endif
4167
 
4164
 
4336
 
4333
 
4337
         #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4334
         #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4338
 
4335
 
4339
-          bed_level_grid[xCount][yCount] = measured_z;
4336
+          bed_level_grid[xCount][yCount] = measured_z + zoffset;
4340
 
4337
 
4341
         #elif ENABLED(AUTO_BED_LEVELING_3POINT)
4338
         #elif ENABLED(AUTO_BED_LEVELING_3POINT)
4342
 
4339
 
4508
 
4505
 
4509
             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4506
             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4510
 
4507
 
4511
-              bed_level_grid[xCount][yCount] = measured_z;
4508
+              bed_level_grid[xCount][yCount] = measured_z + zoffset;
4512
 
4509
 
4513
             #endif
4510
             #endif
4514
 
4511
 

Loading…
Cancel
Save