aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-04-11 11:41:45 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-05-11 12:46:25 -0400
commit20a27c697f3a0c8aae130491094e0bdeb91dd0a0 (patch)
tree130c5c423c2ea8ad5a64625f7fedb391b91903ab /klippy
parent703490da1c62486e694a346061a92e7058b6e527 (diff)
downloadkutter-20a27c697f3a0c8aae130491094e0bdeb91dd0a0.tar.gz
kutter-20a27c697f3a0c8aae130491094e0bdeb91dd0a0.tar.xz
kutter-20a27c697f3a0c8aae130491094e0bdeb91dd0a0.zip
bltouch: Add "probe in touch mode" option
Signed-off-by: Mike Stiemke <fandjango@gmx.de>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/bltouch.py4
1 files changed, 4 insertions, 0 deletions
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