Use babystepping to adjust bed probe z-offset

This commit is contained in:
Thomas Moore
2017-02-12 17:20:24 -06:00
committed by Scott Lahteine
parent 36e5c7c389
commit 361655828f
2 changed files with 45 additions and 5 deletions

View File

@ -7991,6 +7991,11 @@ inline void gcode_M503() {
#endif
#endif
#if ENABLED(BABYSTEPPING)
if (planner.abl_enabled)
thermalManager.babystep_axis(Z_AXIS, lround((value - zprobe_zoffset) * planner.axis_steps_per_mm[Z_AXIS]));
#endif
zprobe_zoffset = value;
SERIAL_ECHO(zprobe_zoffset);
}