motion_queuing: Improve run to run stability of flushing when in debug mode

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor committed 2025-09-26 12:27:26 -04:00
1 parent 8c7693c048
commit 30a1f22e1d
1 file changed
+2 -2
+2 -2
View File
@@ -224,8 +224,8 @@ class PrinterMotionQueuing:
flush_count = 0
while self.last_step_gen_time < faux_time:
target = self.last_step_gen_time + batch_time
if flush_count > 100.:
target = faux_time
if flush_count > 100. and faux_time > target:
target += int((faux_time-target) / batch_time) * batch_time
self._advance_flush_time(0., target)
flush_count += 1
if flush_count: