mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 21:14:05 -06:00
toolhead: Store both the start and end position in the Move class
Store the start position (in addition to the existing end position) in the Move class. The start position can be useful to the kinematic classes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
306db9a851
commit
6a96e83ea9
3 changed files with 21 additions and 17 deletions
|
@ -21,7 +21,7 @@ class PrinterExtruder:
|
|||
self.stepper.motor_enable(move_time, 0)
|
||||
def check_move(self, move):
|
||||
if not self.heater.can_extrude:
|
||||
raise homing.EndstopError(move.pos, "Extrude below minimum temp")
|
||||
raise homing.EndstopError(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]):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue