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>
This commit is contained in:
Kevin O'Connor 2018-12-14 11:45:16 -05:00
parent ccc25a03d5
commit d0f09727a9
1 changed files with 2 additions and 1 deletions

View File

@ -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):