probe: Use configfile note_valid=False when inspecting z position_min

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-13 10:26:27 -05:00
parent 89183edbda
commit b25520795d
1 changed files with 4 additions and 2 deletions

View File

@ -29,10 +29,12 @@ class PrinterProbe:
# Infer Z position to move to during a probe # Infer Z position to move to during a probe
if config.has_section('stepper_z'): if config.has_section('stepper_z'):
zconfig = config.getsection('stepper_z') zconfig = config.getsection('stepper_z')
self.z_position = zconfig.getfloat('position_min', 0.) self.z_position = zconfig.getfloat('position_min', 0.,
note_valid=False)
else: else:
pconfig = config.getsection('printer') pconfig = config.getsection('printer')
self.z_position = pconfig.getfloat('minimum_z_position', 0.) self.z_position = pconfig.getfloat('minimum_z_position', 0.,
note_valid=False)
# Multi-sample support (for improved accuracy) # Multi-sample support (for improved accuracy)
self.sample_count = config.getint('samples', 1, minval=1) self.sample_count = config.getint('samples', 1, minval=1)
self.sample_retract_dist = config.getfloat('sample_retract_dist', 2., self.sample_retract_dist = config.getfloat('sample_retract_dist', 2.,