diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-14 18:32:24 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-21 13:17:45 -0500 |
commit | 7c80e8d533728f80400691fcdf9bc3e6118e4ae8 (patch) | |
tree | bf0b731a056310b34ee4dc1b574e944ea2a7a08f /klippy/toolhead.py | |
parent | 430b8d0e52158159f60dc45a123e4d60d4ec31be (diff) | |
download | kutter-7c80e8d533728f80400691fcdf9bc3e6118e4ae8.tar.gz kutter-7c80e8d533728f80400691fcdf9bc3e6118e4ae8.tar.xz kutter-7c80e8d533728f80400691fcdf9bc3e6118e4ae8.zip |
toolhead: No need to transition to Flushed state before entering Drip state
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r-- | klippy/toolhead.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py index a5b91c46..2d302a7b 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -433,11 +433,13 @@ class ToolHead: npt = min(self.print_time + DRIP_SEGMENT_TIME, next_print_time) self._update_move_time(npt) def drip_move(self, newpos, speed): - # Transition to "Flushed" state and then to "Drip" state - self._full_flush() + # Transition from "Flushed"/"Priming"/main state to "Drip" state + self.move_queue.flush() self.special_queuing_state = "Drip" self.need_check_stall = self.reactor.NEVER self.reactor.update_timer(self.flush_timer, self.reactor.NEVER) + self.move_queue.set_flush_time(self.buffer_time_high) + self.idle_flush_print_time = 0. self.drip_completion = self.reactor.completion() # Submit move try: @@ -451,7 +453,7 @@ class ToolHead: except DripModeEndSignal as e: self.move_queue.reset() self.trapq_free_moves(self.trapq, self.reactor.NEVER) - # Return to "Flushed" state + # Exit "Drip" state self._full_flush() def signal_drip_mode_end(self): self.drip_completion.complete(True) |