Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move code ouf of the klippy:ready handler into a deferred callback. #203

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

rschaeuble
Copy link
Contributor

Currently the klippy:ready event handler breaks the rules by pausing the reactor. This happens when using mcu_tmc.

As a result of that, the printer will appear ready to Moonraker before it really, which then can lead to Moonraker sending commands to a not-ready Klipper. A scenario where this happens (moonraker-timelapse) and details can be found in the discussion of Klipper3d/klipper#6631.

This fix moves the problematic code out of the event handler by registering a callback which then runs the tuning.

This allows using tmc_mcu without breaking the rules of klippy:ready.
@thijstriemstra
Copy link

@andrewmcgr this looks reasonable, what are your thoughts?

Copy link
Owner

@andrewmcgr andrewmcgr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks muchly!

@andrewmcgr andrewmcgr merged commit eb39e2b into andrewmcgr:main Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants