Skip to content

Commit

Permalink
add deprecation note for direct zero_ref_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
TitusLabs committed Aug 1, 2024
1 parent f0ffc31 commit 40cfc68
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions z_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,13 @@ def _get_bed_site(self, gcmd):
return self.bed_site
# from mesh's zero reference position
if mesh is not None:
if (hasattr(mesh.bmc, 'zero_ref_pos')
and mesh.bmc.zero_ref_pos is not None):
return mesh.bmc.zero_ref_pos
elif (hasattr(mesh.bmc, 'probe_mgr')
if (hasattr(mesh.bmc, 'probe_mgr')
and mesh.bmc.probe_mgr.zero_ref_pos is not None):
return mesh.bmc.probe_mgr.zero_ref_pos
elif (hasattr(mesh.bmc, 'zero_ref_pos')
and mesh.bmc.zero_ref_pos is not None):
# TODO: remove - deprecated since 2024-06
return mesh.bmc.zero_ref_pos
elif (hasattr(mesh.bmc, 'relative_reference_index')
and mesh.bmc.relative_reference_index is not None):
# TODO: remove: trying to read the deprecated rri
Expand Down

0 comments on commit 40cfc68

Please sign in to comment.