aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-09-11 13:45:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-09-11 13:45:33 -0400
commit5791a4d8c4cd09b7652fa98f9a82ca3606324b7b (patch)
treeff58fd69c8c026e8d89e3b5535dd2152fef68011
parent4573932f89d4bc0f0c0fea5ee40f7a2d4d3ed757 (diff)
downloadkutter-5791a4d8c4cd09b7652fa98f9a82ca3606324b7b.tar.gz
kutter-5791a4d8c4cd09b7652fa98f9a82ca3606324b7b.tar.xz
kutter-5791a4d8c4cd09b7652fa98f9a82ca3606324b7b.zip
toolhead: Set commanded_pos[] to move.end_pos
Commit 4573932f allowed move.end_pos to differ from the requested end position - the toolhead class should use the updated position when storing its commanded position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/toolhead.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index 963d8052..96210152 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -349,7 +349,7 @@ class ToolHead:
self.kin.check_move(move)
if move.axes_d[3]:
self.extruder.check_move(move)
- self.commanded_pos[:] = newpos
+ self.commanded_pos[:] = move.end_pos
self.move_queue.add_move(move)
if self.print_time > self.need_check_stall:
self._check_stall()