stepper: Wrap lines to 80 columns

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-10-08 12:54:33 -04:00
parent f7a7223b30
commit e85f9473fc
1 changed files with 6 additions and 3 deletions

View File

@ -145,7 +145,8 @@ class PrinterRail:
" position_min and position_max" % config.get_name()) " position_min and position_max" % config.get_name())
# Homing mechanics # Homing mechanics
self.homing_speed = config.getfloat('homing_speed', 5.0, above=0.) 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( self.homing_retract_dist = config.getfloat(
'homing_retract_dist', 5., minval=0.) 'homing_retract_dist', 5., minval=0.)
self.homing_positive_dir = config.getboolean( self.homing_positive_dir = config.getboolean(
@ -221,9 +222,11 @@ class PrinterRail:
return self.position_min, self.position_max return self.position_min, self.position_max
def get_homing_info(self): def get_homing_info(self):
homing_info = collections.namedtuple('homing_info', [ 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_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 return homing_info
def get_steppers(self): def get_steppers(self):
return list(self.steppers) return list(self.steppers)