Use babystepping to adjust bed probe z-offset

This commit is contained in:
Thomas Moore authored and Scott Lahteine committed 2017-04-13 15:46:05 -05:00
1 parent 36e5c7c389
commit 361655828f
2 files changed
+45 -5

No files matched your search

+5
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);
}