mirror of https://github.com/Desuuuu/klipper.git
stepper: Wrap lines to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
f7a7223b30
commit
e85f9473fc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue