toolhead: Avoid numerical stability in _handle_step_flush() comparison

Don't rely on an exact floating point number match to detect when a
forced lookahead flush is needed.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2025-09-15 19:20:00 -04:00
parent df29a38011
commit 636380e4f3

View File

@@ -358,7 +358,7 @@ class ToolHead:
return
# In "main" state - flush lookahead if buffer runs low
kin_flush_delay = self.motion_queuing.get_kin_flush_delay()
if step_gen_time >= self.print_time - kin_flush_delay:
if step_gen_time >= self.print_time - kin_flush_delay - 0.001:
self._flush_lookahead(is_runout=True)
# Movement commands
def get_position(self):