From da735ab312bd3ff003dda0bd162f1788bb3af8d8 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 29 Mar 2021 21:06:36 -0400 Subject: [PATCH] toolhead: Make sure input_shaper movement starts after endstop checking Add a dwell() to the start of drip_move() to ensure that input_shaper movements scheduled in advance of the nominal move time aren't scheduled prior to the homing start. (Otherwise the stepper may move prior to endstop checking, which can corrupt the "no movement" checks.) Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 1 + 1 file changed, 1 insertion(+) diff --git a/klippy/toolhead.py b/klippy/toolhead.py index c6ba130f..7399c189 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -460,6 +460,7 @@ class ToolHead: npt = min(self.print_time + DRIP_SEGMENT_TIME, next_print_time) self._update_move_time(npt) def drip_move(self, newpos, speed, drip_completion): + self.dwell(self.kin_flush_delay) # Transition from "Flushed"/"Priming"/main state to "Drip" state self.move_queue.flush() self.special_queuing_state = "Drip"