diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-12-28 11:48:40 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-12-28 22:38:28 -0500 |
commit | f2b406fc5e51e21af67eee2dc4a0bcec0f717029 (patch) | |
tree | ff5ba4761c54968b85693d6a9ef1bff86503fc40 /klippy/extruder.py | |
parent | f46bc0ef046f3848d64666778a304c85bb5439a3 (diff) | |
download | kutter-f2b406fc5e51e21af67eee2dc4a0bcec0f717029.tar.gz kutter-f2b406fc5e51e21af67eee2dc4a0bcec0f717029.tar.xz kutter-f2b406fc5e51e21af67eee2dc4a0bcec0f717029.zip |
toolhead: Don't call into kinematic class on extrude only moves
Add a is_kinematic_move flag to the Move class and clear it on extrude
only moves. Don't call the kinematic check_move() or move() methods
for extrude only moves.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extruder.py')
-rw-r--r-- | klippy/extruder.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/klippy/extruder.py b/klippy/extruder.py index 12f77d85..31f66cd6 100644 --- a/klippy/extruder.py +++ b/klippy/extruder.py @@ -26,9 +26,7 @@ class PrinterExtruder: if not self.heater.can_extrude: raise homing.EndstopMoveError( move.end_pos, "Extrude below minimum temp") - if (not move.do_calc_junction - and not move.axes_d[0] and not move.axes_d[1] - and not move.axes_d[2]): + if not move.is_kinematic_move: # Extrude only move - limit accel and velocity move.limit_speed(self.max_e_velocity, self.max_e_accel) def move(self, move_time, move): |