From d0f09727a95ce8809b3625d0f13d87918b5848fb Mon Sep 17 00:00:00 2001
From: Kevin O'Connor <kevin@koconnor.net>
Date: Fri, 14 Dec 2018 11:45:16 -0500
Subject: [PATCH] bltouch: Issue both a "reset" and a "pin_up" after a
 successful probe

Not all BLTouch clones raise the pin on a "reset" request, so
explicitly send a "pin_up" command.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
---
 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 58a78ca45..e5a170ceb 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -98,7 +98,8 @@ class BLTouchEndstopWrapper:
         toolhead = self.printer.lookup_object('toolhead')
         print_time = toolhead.get_last_move_time()
         self.send_cmd(print_time, 'reset')
-        self.send_cmd(print_time + self.pin_move_time, None)
+        self.send_cmd(print_time + MIN_CMD_TIME, 'pin_up')
+        self.send_cmd(print_time + MIN_CMD_TIME + self.pin_move_time, None)
         toolhead.dwell(self.pin_move_time + MIN_CMD_TIME)
         self.mcu_endstop.home_finalize()
     def home_start(self, print_time, sample_time, sample_count, rest_time):