aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/bltouch.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-01-31 09:55:53 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-02-04 18:03:07 -0500
commit4c48c1e8e42d21cac53a4627fc5fa74ee38d075b (patch)
tree1b5e818a3a906ccf2ec8448ddf4ac96a5e7c28e3 /klippy/extras/bltouch.py
parent345a5f4e1fd8192a225c3e07d178e7fc293f4ed9 (diff)
downloadkutter-4c48c1e8e42d21cac53a4627fc5fa74ee38d075b.tar.gz
kutter-4c48c1e8e42d21cac53a4627fc5fa74ee38d075b.tar.xz
kutter-4c48c1e8e42d21cac53a4627fc5fa74ee38d075b.zip
bltouch: Issue just a pin_up command on a normal raise probe attempt
In the normal case, a regular pin_up command should be sufficient to raise the probe. (Should the regular pin_up fail, the code can issue a "reset" command during the retry.) Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/bltouch.py')
-rw-r--r--klippy/extras/bltouch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py
index f18f7153..237fe690 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -105,7 +105,8 @@ class BLTouchEndstopWrapper:
def raise_probe(self):
for retry in range(3):
self.sync_mcu_print_time()
- self.send_cmd('reset')
+ if retry or not self.pin_up_not_triggered:
+ self.send_cmd('reset')
check_start_time = self.send_cmd('pin_up',
duration=self.pin_move_time)
check_end_time = self.send_cmd(None)