diff --git a/klippy/stepper.py b/klippy/stepper.py index 48706178..ce262006 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -145,7 +145,8 @@ class PrinterRail: " position_min and position_max" % config.get_name()) # Homing mechanics self.homing_speed = config.getfloat('homing_speed', 5.0, above=0.) - self.second_homing_speed = config.getfloat('second_homing_speed', self.homing_speed/2., above=0.) + self.second_homing_speed = config.getfloat( + 'second_homing_speed', self.homing_speed/2., above=0.) self.homing_retract_dist = config.getfloat( 'homing_retract_dist', 5., minval=0.) self.homing_positive_dir = config.getboolean( @@ -221,9 +222,11 @@ class PrinterRail: return self.position_min, self.position_max def get_homing_info(self): homing_info = collections.namedtuple('homing_info', [ - 'speed', 'position_endstop', 'retract_dist', 'positive_dir', 'second_homing_speed'])( + 'speed', 'position_endstop', 'retract_dist', 'positive_dir', + 'second_homing_speed'])( self.homing_speed, self.position_endstop, - self.homing_retract_dist, self.homing_positive_dir, self.second_homing_speed) + self.homing_retract_dist, self.homing_positive_dir, + self.second_homing_speed) return homing_info def get_steppers(self): return list(self.steppers)