Browse Source

Fix bilinear levelling z offset

Since run_probe was altered to return the probe Z position rather than the nozzle Z position bilinear levelling has been broken because the Z-offset has been applied twice - once in the run_probe function, and then again in the G29 code for bilinear levelling.
benlye 8 years ago
parent
commit
0a2b4f3486
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

@@ -4300,7 +4300,7 @@ inline void gcode_G28() {
4300 4300
 
4301 4301
         #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4302 4302
 
4303
-          bed_level_grid[xCount][yCount] = measured_z + zoffset;
4303
+          bed_level_grid[xCount][yCount] = measured_z;
4304 4304
 
4305 4305
         #elif ENABLED(AUTO_BED_LEVELING_3POINT)
4306 4306
 
@@ -4472,7 +4472,7 @@ inline void gcode_G28() {
4472 4472
 
4473 4473
             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
4474 4474
 
4475
-              bed_level_grid[xCount][yCount] = measured_z + zoffset;
4475
+              bed_level_grid[xCount][yCount] = measured_z;
4476 4476
 
4477 4477
             #endif
4478 4478
 

Loading…
Cancel
Save