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:
parent
44a849bdce
commit
0a2b4f3486
|
@ -4300,7 +4300,7 @@ inline void gcode_G28() {
|
||||||
|
|
||||||
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
#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)
|
#elif ENABLED(AUTO_BED_LEVELING_3POINT)
|
||||||
|
|
||||||
|
@ -4472,7 +4472,7 @@ inline void gcode_G28() {
|
||||||
|
|
||||||
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
||||||
|
|
||||||
bed_level_grid[xCount][yCount] = measured_z + zoffset;
|
bed_level_grid[xCount][yCount] = measured_z;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue