diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-03-29 18:06:47 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-04-02 08:25:22 -0400 |
commit | 5e207d2baa058a2a68576d98e975cb6d5f6b4197 (patch) | |
tree | 9b0efc1ece3bc04e2c27a9ae2673ff6950dbabf7 /klippy/extras/bltouch.py | |
parent | 3646cc0140b85d2a3560811d18bb51222ca2a531 (diff) | |
download | kutter-5e207d2baa058a2a68576d98e975cb6d5f6b4197.tar.gz kutter-5e207d2baa058a2a68576d98e975cb6d5f6b4197.tar.xz kutter-5e207d2baa058a2a68576d98e975cb6d5f6b4197.zip |
bltouch: Apply reset command for a full second on a raise_probe() failure
If an error is found during the pin_up_not_triggered check, then apply
the reset command for a full second (instead of just 100ms). This
gives the bltouch more time to check its internal state.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/bltouch.py')
-rw-r--r-- | klippy/extras/bltouch.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py index 9537e006..a3c2d955 100644 --- a/klippy/extras/bltouch.py +++ b/klippy/extras/bltouch.py @@ -127,9 +127,8 @@ class BLTouchEndstopWrapper: raise homing.EndstopError("BLTouch failed to raise probe") msg = "Failed to verify BLTouch probe is raised; retrying." self.gcode.respond_info(msg) - self.next_cmd_time += RETRY_RESET_TIME self.sync_mcu_print_time() - self.send_cmd('reset') + self.send_cmd('reset', duration=RETRY_RESET_TIME) def lower_probe(self): self.test_sensor() self.sync_print_time() |