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.
This commit is contained in:
benlye 2017-04-05 19:44:19 +01:00 committed by Scott Lahteine
parent 44a849bdce
commit 0a2b4f3486

View File

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