stepper: Register a config default for calculated homing_positive_dir

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-04-16 11:42:39 -04:00
parent dcf6d30aba
commit ca1d431653
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ class PrinterRail:
raise config.error(
"Unable to infer homing_positive_dir in section '%s'" % (
config.get_name(),))
config.getboolean('homing_positive_dir', self.homing_positive_dir)
elif ((self.homing_positive_dir
and self.position_endstop == self.position_min)
or (not self.homing_positive_dir