From 345a5f4e1fd8192a225c3e07d178e7fc293f4ed9 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 31 Jan 2019 09:53:21 -0500 Subject: [PATCH] bltouch: Increase default pin_move_time from 200ms to 675ms Use the same pin move time that Marlin uses. Signed-off-by: Kevin O'Connor --- config/example-extras.cfg | 6 +++--- klippy/extras/bltouch.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/example-extras.cfg b/config/example-extras.cfg index 8cf5649c..5cd56902 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -55,9 +55,9 @@ #control_pin: # Pin connected to the BLTouch control pin. This parameter must be # provided. -#pin_move_time: 0.200 -# The amount of time (in seconds) that it takes the BLTouch pin to -# move up or down. The default is 0.200 seconds. +#pin_move_time: 0.675 +# The amount of time (in seconds) to wait for the BLTouch pin to +# move up or down. The default is 0.675 seconds. #pin_up_reports_not_triggered: True # Set if the BLTouch consistently reports the probe in a "not # triggered" state after a successful "pin_up" command. This should diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py index e95938e2..f18f7153 100644 --- a/klippy/extras/bltouch.py +++ b/klippy/extras/bltouch.py @@ -47,7 +47,7 @@ class BLTouchEndstopWrapper: 'pin_up_touch_mode_reports_triggered', True) self.start_mcu_pos = [] # Calculate pin move time - pmt = max(config.getfloat('pin_move_time', 0.200), MIN_CMD_TIME) + pmt = max(config.getfloat('pin_move_time', 0.675), MIN_CMD_TIME) self.pin_move_time = math.ceil(pmt / SIGNAL_PERIOD) * SIGNAL_PERIOD # Wrappers self.get_mcu = self.mcu_endstop.get_mcu