Use babystepping to adjust bed probe z-offset
This commit is contained in:
parent
36e5c7c389
commit
361655828f
2 changed files with 45 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue