aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/example-extras.cfg3
-rw-r--r--klippy/extras/bltouch.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index 0ae9e310..3b21caff 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -629,6 +629,9 @@
# sequence. Setting this to False can allow for faster probing, but
# using this mode requires careful tuning of probing speed
# parameters. The default is True.
+#probe_with_touch_mode: False
+# You can elect to probe in touch mode if you want. Note that this
+# is not supported by all probe types.
#pin_up_reports_not_triggered: True
# Set if the BLTouch consistently reports the probe in a "not
# triggered" state after a successful "pin_up" command. This should
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py
index 479a90ec..8e9166bd 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -31,6 +31,8 @@ class BLTouchEndstopWrapper:
self.position_endstop = config.getfloat('z_offset')
self.stow_on_each_sample = config.getboolean('stow_on_each_sample',
True)
+ self.probe_touch_mode = config.getboolean('probe_with_touch_mode',
+ False)
# Create a pwm object to handle the control pin
ppins = self.printer.lookup_object('pins')
self.mcu_pwm = ppins.setup_pin('pwm', config.get('control_pin'))
@@ -134,6 +136,8 @@ class BLTouchEndstopWrapper:
self.test_sensor()
self.sync_print_time()
self.send_cmd('pin_down', duration=self.pin_move_time)
+ if self.probe_touch_mode:
+ self.send_cmd('touch_mode')
def test_sensor(self):
if not self.pin_up_touch_triggered:
# Nothing to test