bltouch: Fix typo in pin_move_time parsing

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-12-04 11:43:04 -05:00
parent 44aa5def73
commit 76b57ba05a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class BLTouchEndstopWrapper:
mcu.register_config_callback(self._build_config) mcu.register_config_callback(self._build_config)
self.mcu_endstop = mcu.setup_pin('endstop', pin_params) self.mcu_endstop = mcu.setup_pin('endstop', pin_params)
# Calculate pin move time # 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 self.pin_move_time = math.ceil(pmt / SIGNAL_PERIOD) * SIGNAL_PERIOD
# Wrappers # Wrappers
self.get_mcu = self.mcu_endstop.get_mcu self.get_mcu = self.mcu_endstop.get_mcu