From 4aa550837fc170d0b77a0d461ca4f970b7bee7ae Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 10 Jan 2025 11:27:30 -0500 Subject: 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 --- klippy/toolhead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/toolhead.py') diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 256915da..f1a9afda 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -457,7 +457,7 @@ class ToolHead: # Movement commands def get_position(self): return list(self.commanded_pos) - def set_position(self, newpos, homing_axes=()): + def set_position(self, newpos, homing_axes=""): self.flush_step_generation() ffi_main, ffi_lib = chelper.get_ffi() ffi_lib.trapq_set_position(self.trapq, self.print_time, -- cgit v1.2.3-70-g09d2