mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-10-26 07:46:11 +01:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user