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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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?

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.

2 participants