aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/homing_override.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-01-10 11:27:30 -0500
committerKevin O'Connor <kevin@koconnor.net>2025-01-21 18:58:23 -0500
commit4aa550837fc170d0b77a0d461ca4f970b7bee7ae (patch)
tree7a185d949b9179c5f9b3977539e9cfda5ca7756e /klippy/extras/homing_override.py
parentc72d73ec450119b5fbe13d98409037a21ae97101 (diff)
downloadkutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.tar.gz
kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.tar.xz
kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.zip
toolhead: Pass set_position() homing_axes parameter as a string
Use strings such as "xyz" to specify which axes are to be considered homing during a set_position() call. This makes the parameter a little less cryptic. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/homing_override.py')
-rw-r--r--klippy/extras/homing_override.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/homing_override.py b/klippy/extras/homing_override.py
index e498c8b8..0a987d59 100644
--- a/klippy/extras/homing_override.py
+++ b/klippy/extras/homing_override.py
@@ -46,11 +46,11 @@ class HomingOverride:
# Calculate forced position (if configured)
toolhead = self.printer.lookup_object('toolhead')
pos = toolhead.get_position()
- homing_axes = []
+ homing_axes = ""
for axis, loc in enumerate(self.start_pos):
if loc is not None:
pos[axis] = loc
- homing_axes.append(axis)
+ homing_axes += "xyz"[axis]
toolhead.set_position(pos, homing_axes=homing_axes)
# Perform homing
context = self.template.create_template_context()