Bladeren bron

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 jaren geleden
bovenliggende
commit
f1d50ac1dc
1 gewijzigde bestanden met toevoegingen van 2 en 5 verwijderingen
  1. 2
    5
      Marlin/Marlin_main.cpp

+ 2
- 5
Marlin/Marlin_main.cpp Bestand weergeven

@@ -4159,9 +4159,6 @@ inline void gcode_G28() {
4159 4159
       #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4160 4160
 
4161 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 4163
       #endif
4167 4164
 
@@ -4336,7 +4333,7 @@ inline void gcode_G28() {
4336 4333
 
4337 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 4338
         #elif ENABLED(AUTO_BED_LEVELING_3POINT)
4342 4339
 
@@ -4508,7 +4505,7 @@ inline void gcode_G28() {
4508 4505
 
4509 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 4510
             #endif
4514 4511
 

Laden…
Annuleren
Opslaan