aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-07 20:37:03 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-05-12 20:15:03 -0400
commit20823003098748fe6808793fe5d0c01ae74d47f9 (patch)
tree5eeba2d5a532340f6101b6f158159bcf61e49708 /klippy
parent53acdfd0a5421d93a41da0a77a982752af10f8b0 (diff)
downloadkutter-20823003098748fe6808793fe5d0c01ae74d47f9.tar.gz
kutter-20823003098748fe6808793fe5d0c01ae74d47f9.tar.xz
kutter-20823003098748fe6808793fe5d0c01ae74d47f9.zip
z_thermal_adjust: Support toolhead positions with more than 4 axes
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/z_thermal_adjust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/z_thermal_adjust.py b/klippy/extras/z_thermal_adjust.py
index 0fa0bff0..4cf3a669 100644
--- a/klippy/extras/z_thermal_adjust.py
+++ b/klippy/extras/z_thermal_adjust.py
@@ -110,12 +110,12 @@ class ZThermalAdjuster:
# Apply Z adjustment
new_z = pos[2] + self.z_adjust_mm
self.last_z_adjust_mm = self.z_adjust_mm
- return [pos[0], pos[1], new_z, pos[3]]
+ return [pos[0], pos[1], new_z] + pos[3:]
def calc_unadjust(self, pos):
'Remove Z adjustment'
unadjusted_z = pos[2] - self.z_adjust_mm
- return [pos[0], pos[1], unadjusted_z, pos[3]]
+ return [pos[0], pos[1], unadjusted_z] + pos[3:]
def get_position(self):
position = self.calc_unadjust(self.next_transform.get_position())