aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index a2651fea..4855caf6 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -167,10 +167,12 @@ class MoveQueue:
return
# Allow extruder to do its lookahead
move_count = self.extruder_lookahead(queue, flush_count, lazy)
+ self.leftover = flush_count - move_count
+ if not move_count:
+ return
# Generate step times for all moves ready to be flushed
self.toolhead._process_moves(queue[:move_count])
# Remove processed moves from the queue
- self.leftover = flush_count - move_count
del queue[:move_count]
def add_move(self, move):
self.queue.append(move)