From 6118525c19fdc7403817782591e584278866939f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 26 Sep 2025 11:43:19 -0400 Subject: [PATCH] toolhead: Allow more entries to flush from "lazy" lookahead flush Previously the code would always keep at least 2 items on the lookahead queue after a "lazy" flush. In most cases it's okay to leave only a single item. Update the code to better handle flushing of items that are fully ready. Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 6ebacd0a9..6326e607f 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -156,7 +156,7 @@ class LookAheadQueue: # This move can both accel and decel, or this is a # full accel move followed by a full decel move if update_flush_count and peak_cruise_v2: - flush_count = i + flush_count = i + pending_cv2_assign update_flush_count = False peak_cruise_v2 = (mcr_start_v2 + reach_mcr_start_v2) * .5 cruise_v2 = min((start_v2 + reachable_start_v2) * .5