generic_cartesian: Fixed safe_z_home and manual_probe for new kinematics
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
committed by
Kevin O'Connor
parent
8627c94d6a
commit
ca83c13f37
@@ -174,11 +174,8 @@ class ProbeCommandHelper:
|
||||
|
||||
# Helper to lookup the minimum Z position for the printer
|
||||
def lookup_minimum_z(config):
|
||||
if config.has_section('stepper_z'):
|
||||
zconfig = config.getsection('stepper_z')
|
||||
return zconfig.getfloat('position_min', 0., note_valid=False)
|
||||
elif config.has_section('carriage z'):
|
||||
zconfig = config.getsection('carriage z')
|
||||
zconfig = manual_probe.lookup_z_endstop_config(config)
|
||||
if zconfig is not None:
|
||||
return zconfig.getfloat('position_min', 0., note_valid=False)
|
||||
pconfig = config.getsection('printer')
|
||||
return pconfig.getfloat('minimum_z_position', 0., note_valid=False)
|
||||
|
||||
Reference in New Issue
Block a user