feat(afc): gate lane eject on mounted tool#1899
Open
unlucio wants to merge 1 commit into
Open
Conversation
Add an optional `mounted` flag to the AFC lane type and drive the lane Eject button's disabled state from it: when the backend reports it, Eject enables only for the lane whose tool is on the carrier. When `mounted` is absent it falls back to the exact previous expression, so behaviour is unchanged for backends that don't report it. This is to allow for better control of multi-tool machines. Signed-off-by: Lucio <unlucio@gmail.com>
Contributor
|
@unlucio What is lane mounted? To my knowledge this is not a valid lane status that's in the official AFC-Klipper-Add-On repo. |
Author
It is not for AFC; I'm just using the AFC widget as UI, but for multi-tools that are not using AFC but can gain convenience and visual clarity from the same UI scr.2026-07-04.at.03.17.29.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an optional
mountedflag to the AFC lane type and drive the lane Eject button's disabled state from it: when the backend reports it, Eject enables only for the lane whose tool is on the carrier. Whenmountedis absent, it falls back to the exact previous expression, so behaviour is unchanged for backends that don't report it.This is to allow for better control of multi-tool machines.