bed_mesh: Allow user to clear the relative_reference_index via gcode
If a negative number is specified for the RELATIVE_REFERENCE_INDEX parameter clear the internal relative_reference_index. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
38b2805136
commit
5f5dfbaa7f
|
@ -404,6 +404,8 @@ class BedMeshCalibrate:
|
|||
if 'RELATIVE_REFERENCE_INDEX' in params:
|
||||
self.relative_reference_index = gcmd.get_int(
|
||||
'RELATIVE_REFERENCE_INDEX')
|
||||
if self.relative_reference_index < 0:
|
||||
self.relative_reference_index = None
|
||||
need_cfg_update = True
|
||||
if self.radius is not None:
|
||||
if "MESH_RADIUS" in params:
|
||||
|
|
Loading…
Reference in New Issue