aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-04-25 12:01:52 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-04-25 12:01:52 -0400
commitc590bf76430a1b14a1f9b5ad0c37840291d7b8a9 (patch)
tree567c69fe813d86028ac3ecccc44c5a1bbc810482 /klippy/extras
parent64031ab3d7c5a857d5bdaa975752112f2da38a49 (diff)
downloadkutter-c590bf76430a1b14a1f9b5ad0c37840291d7b8a9.tar.gz
kutter-c590bf76430a1b14a1f9b5ad0c37840291d7b8a9.tar.xz
kutter-c590bf76430a1b14a1f9b5ad0c37840291d7b8a9.zip
probe: Rename probe_prepare/finalize to probe_prepare/finish
The probe_finalize() name is used for callbacks in both the PrinterProbe and ProbePointsHelper classes. Rename the PrinterProbe callback to avoid confusion. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/bltouch.py2
-rw-r--r--klippy/extras/probe.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py
index 56d6d323..ded6beea 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -182,7 +182,7 @@ class BLTouchEndstopWrapper:
toolhead.flush_step_generation()
self.start_mcu_pos = [(s, s.get_mcu_position())
for s in self.mcu_endstop.get_steppers()]
- def probe_finalize(self):
+ def probe_finish(self):
if self.multi == 'OFF':
self.raise_probe()
self.sync_print_time()
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py
index f1cb21b7..703ef5b4 100644
--- a/klippy/extras/probe.py
+++ b/klippy/extras/probe.py
@@ -71,7 +71,7 @@ class PrinterProbe:
self.mcu_probe.probe_prepare()
def _handle_homing_move_end(self, endstops):
if self.mcu_probe in endstops:
- self.mcu_probe.probe_finalize()
+ self.mcu_probe.probe_finish()
def _handle_home_rails_begin(self, rails):
endstops = [es for rail in rails for es, name in rail.get_endstops()]
if self.mcu_probe in endstops:
@@ -311,7 +311,7 @@ class ProbeEndstopWrapper:
if toolhead.get_position()[:3] != start_pos[:3]:
raise homing.CommandError(
"Toolhead moved during probe activate_gcode script")
- def probe_finalize(self):
+ def probe_finish(self):
toolhead = self.printer.lookup_object('toolhead')
start_pos = toolhead.get_position()
self.deactivate_gcode.run_gcode_from_command()