mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-08 09:10:56 -07:00
Updated `_get_clock_event` to set the timer immediately after calculating the next event time, improving scheduling precision and reducing potential drift in event triggers. Optimized and simplified clock calibration logic in `SecondarySync`: - Replaced redundant calculations for estimated print times with a more concise and readable implementation. - Consolidated logic for determining synchronization points (`sync1_print_time` and `sync2_print_time`) to reduce unnecessary repetition. - Streamlined the calculation of `sync2_sys_time` using a direct expression for the inverse of the main MCU's estimated print time. - Added intermediate variable `time_diff` to improve clarity when computing `sync2_print_time`. Enhanced state management for `queries_pending`: - Modified `_handle_clock` to decrement `queries_pending` using `max(0, queries_pending - 1)`. - Prevented negative values during concurrent accesses, improving stability. Signed-off-by: Michel Feldheim <mfeldheim@gmail.com> |
||
|---|---|---|
| .. | ||
| chelper | ||
| extras | ||
| kinematics | ||
| clocksync.py | ||
| configfile.py | ||
| console.py | ||
| gcode.py | ||
| klippy.py | ||
| mathutil.py | ||
| mcu.py | ||
| msgproto.py | ||
| parsedump.py | ||
| pins.py | ||
| queuelogger.py | ||
| reactor.py | ||
| serialhdl.py | ||
| stepper.py | ||
| toolhead.py | ||
| util.py | ||
| webhooks.py | ||