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

Detect board class by inheritance instead of naming #25740

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Detect board class by inheritance instead of naming #25740

merged 1 commit into from
Apr 5, 2024

Conversation

landswellsong
Copy link
Contributor

Not all (actually none?) Linux boards have linux in their names, but the task detection logic only checks that, resulting in Linux boards being misclassified. In practical terms this means they also pull the unnecessary bootloader in, but overall this makes the clause misleading.

This PR adds functionality to detect the base class of the board by probing inheritance and thus fixes this.

@peterbarker
Copy link
Contributor

I've fixed up the commit message to conform to our standards.

I don't know if the method was really worth it (it doesn't really scan as good English), but this is a definite improvement.

Thanks, will MergeOnCIPass.

@tridge tridge merged commit 4e21dbc into ArduPilot:master Apr 5, 2024
91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants