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>
This commit is contained in:
Kevin O'Connor 2019-01-31 09:55:53 -05:00
parent 345a5f4e1f
commit 4c48c1e8e4
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ class BLTouchEndstopWrapper:
def raise_probe(self): def raise_probe(self):
for retry in range(3): for retry in range(3):
self.sync_mcu_print_time() 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', check_start_time = self.send_cmd('pin_up',
duration=self.pin_move_time) duration=self.pin_move_time)
check_end_time = self.send_cmd(None) check_end_time = self.send_cmd(None)