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

Disable controller selection if OOT controller is selected #1397

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

gemenerik
Copy link
Member

@gemenerik gemenerik commented Aug 8, 2024

Currently, kconfig allows both one of the implemented controllers + the OOT controller to be selected. Since only one can be used at a time this resulted in the implemented controller being used over the OOT controller (due to the order of how they are checked in controller.c. This PR keeps the config/menu structure the same, but when OOT controller is selected, this automatically disables the choice of regular controller.

Visualized in menuconfig:
Screenshot from 2024-09-09 13-12-08

Screenshot from 2024-09-09 13-12-02

@gemenerik
Copy link
Member Author

Perhaps this is why it was named "default" controller? Can we remove the "default" now?

@gemenerik gemenerik changed the title Prioritize OOT controller over default controller Disable controller selection if OOT controller is selected Sep 9, 2024
Copy link
Member

@tobbeanton tobbeanton left a comment

Choose a reason for hiding this comment

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

Nice fix!

@gemenerik gemenerik merged commit 6c8f5dc into master Sep 9, 2024
25 checks passed
@gemenerik gemenerik deleted the rik/ootprio branch September 9, 2024 11:29
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