klipper/klippy
Kevin O'Connor 184ba4080c
Some checks are pending
Build test / build (push) Waiting to run
toolhead: Flush lookahead on dwell - fix flushing bug after long delays
Commit 7ea5f5d2 changed how the lookahead queue is flushed.
Previously, the main flush timer would always run while the toolhead
was considered in an active state (print_time).  After that commit,
the flush timer could sleep if there were no steps generated (no call
to note_mcu_movequeue_activity() ).  This could lead to a situation
where a G4 command (or series of commands) could cause the toolhead to
be considered in an active state while the flush timer was disabled.
The result was that a future command may not be properly flushed (the
toolhead would fail to transition to a "Priming" state).

Fix by ensuring that all dwell() requests fully flush the lookahead
queue.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2025-09-29 11:31:31 -04:00
..
chelper itersolve: Don't call trapq_check_sentinels() from itersolve_generate_steps() 2025-09-24 18:58:31 -04:00
extras motion_queuing: Improve run to run stability of flushing when in debug mode 2025-09-26 12:27:26 -04:00
kinematics extruder: Recheck the step generation scan windows on sync_to_extruder() 2025-09-16 11:28:16 -04:00
clocksync.py clocksync: Simplify 32bit clock upconversion code 2023-12-10 14:59:13 -05:00
configfile.py configfile: Fix comments on same line as [include xxx.cfg] directive 2024-11-12 21:07:44 -05:00
console.py console: No need to import pins module 2023-01-07 12:00:16 -05:00
gcode.py gcode: Fix out-of-order check for M112 when read from gcode pseudo-tty 2025-09-06 14:06:25 -04:00
klippy.py klippy: Fix missing default parameter of invoke_async_shutdown() 2024-12-02 12:51:51 -05:00
mathutil.py kinematics: Generic Cartesian kinematics implementation (#6815) 2025-05-06 18:06:36 -04:00
mcu.py motion_queuing: Move remaining steppersync logic from mcu module 2025-09-12 22:41:30 -04:00
msgproto.py msgproto: Fix return type for create_command() 2024-11-13 14:24:03 -05:00
parsedump.py parsedump: Support running on both python2 and python3 2022-12-07 14:31:03 -05:00
pins.py pins: Improve pin description checks 2022-05-09 16:33:46 -04:00
queuelogger.py Revert "queuelogger: set thread name" 2025-08-01 13:08:03 -04:00
reactor.py reactor: Unify handling of fd events 2025-09-10 21:31:17 -04:00
serialhdl.py serialqueue: name the threads per mcu 2025-08-01 12:42:53 -04:00
stepper.py stepcompress: Remove stepcompress_queue_msg() 2025-09-24 15:07:25 -04:00
toolhead.py toolhead: Flush lookahead on dwell - fix flushing bug after long delays 2025-09-29 11:31:31 -04:00
util.py util: report git version info as a dict 2023-05-04 14:07:14 -04:00
webhooks.py klippy: fix typos in python code (#6989) 2025-07-25 12:31:19 -04:00