From 4c48c1e8e42d21cac53a4627fc5fa74ee38d075b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 31 Jan 2019 09:55:53 -0500 Subject: [PATCH] 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 --- klippy/extras/bltouch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)