stepper: Register a config default for calculated homing_positive_dir
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
dcf6d30aba
commit
ca1d431653
|
@ -314,6 +314,7 @@ class PrinterRail:
|
||||||
raise config.error(
|
raise config.error(
|
||||||
"Unable to infer homing_positive_dir in section '%s'" % (
|
"Unable to infer homing_positive_dir in section '%s'" % (
|
||||||
config.get_name(),))
|
config.get_name(),))
|
||||||
|
config.getboolean('homing_positive_dir', self.homing_positive_dir)
|
||||||
elif ((self.homing_positive_dir
|
elif ((self.homing_positive_dir
|
||||||
and self.position_endstop == self.position_min)
|
and self.position_endstop == self.position_min)
|
||||||
or (not self.homing_positive_dir
|
or (not self.homing_positive_dir
|
||||||
|
|
Loading…
Reference in New Issue