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:
@@ -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]):
|
||||
|
||||
Reference in New Issue
Block a user