From 3387cccdcfe953e5733df61187b8f5731b38c1e0 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sat, 18 Aug 2018 12:25:57 -0400 Subject: bed_mesh: move probe x and y offsets to the [probe] module All probe offsets are now passed to the finalize() callback in the ProbePointsHelper Class. Signed-off-by: Eric Callahan --- klippy/extras/bed_tilt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'klippy/extras/bed_tilt.py') diff --git a/klippy/extras/bed_tilt.py b/klippy/extras/bed_tilt.py index c9663902..6c374eba 100644 --- a/klippy/extras/bed_tilt.py +++ b/klippy/extras/bed_tilt.py @@ -51,7 +51,8 @@ class BedTiltCalibrate: def get_probed_position(self): kin = self.printer.lookup_object('toolhead').get_kinematics() return kin.calc_position() - def finalize(self, z_offset, positions): + def finalize(self, offsets, positions): + z_offset = offsets[2] logging.info("Calculating bed_tilt with: %s", positions) params = { 'x_adjust': self.bedtilt.x_adjust, 'y_adjust': self.bedtilt.y_adjust, -- cgit v1.2.3-70-g09d2