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.
pull/1/head
benlye 8 years ago
committed by Scott Lahteine
parent
commit
0a2b4f3486
  1. 4
      Marlin/Marlin_main.cpp

4
Marlin/Marlin_main.cpp

@ -4300,7 +4300,7 @@ inline void gcode_G28() {
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
bed_level_grid[xCount][yCount] = measured_z + zoffset;
bed_level_grid[xCount][yCount] = measured_z;
#elif ENABLED(AUTO_BED_LEVELING_3POINT)
@ -4472,7 +4472,7 @@ inline void gcode_G28() {
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
bed_level_grid[xCount][yCount] = measured_z + zoffset;
bed_level_grid[xCount][yCount] = measured_z;
#endif

Loading…
Cancel
Save