diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-12-04 11:43:04 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-12-04 11:43:04 -0500 |
commit | 76b57ba05a5b89b291d43dfe1a6c2e3e5f1c661e (patch) | |
tree | 25d7fd7e3a1763b3eda3c27e6c0f36d056aca37f /klippy | |
parent | 44aa5def73f5172ffe1a2b271751536fc354134f (diff) | |
download | kutter-76b57ba05a5b89b291d43dfe1a6c2e3e5f1c661e.tar.gz kutter-76b57ba05a5b89b291d43dfe1a6c2e3e5f1c661e.tar.xz kutter-76b57ba05a5b89b291d43dfe1a6c2e3e5f1c661e.zip |
bltouch: Fix typo in pin_move_time parsing
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/bltouch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py index 7ce9275d..37ef96a7 100644 --- a/klippy/extras/bltouch.py +++ b/klippy/extras/bltouch.py @@ -36,7 +36,7 @@ class BLTouchEndstopWrapper: mcu.register_config_callback(self._build_config) self.mcu_endstop = mcu.setup_pin('endstop', pin_params) # Calculate pin move time - pmt = max(config.get('pin_move_time', 0.200), MIN_CMD_TIME) + pmt = max(config.getfloat('pin_move_time', 0.200), MIN_CMD_TIME) self.pin_move_time = math.ceil(pmt / SIGNAL_PERIOD) * SIGNAL_PERIOD # Wrappers self.get_mcu = self.mcu_endstop.get_mcu |