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

🔧 Simplify "sensitive pins" #27219

Conversation

thinkyhead
Copy link
Member

The sensitive pins array is only used in one place, so it can be simplified a lot by just inserting pins that are defined and not -1. This also eliminates a lot of junk in the preprocessor when this header is included.

@thinkyhead thinkyhead force-pushed the bf2_sensitive_pins_cleanup_PR branch from b1191b6 to d1c80b0 Compare June 28, 2024 03:33
@thinkyhead thinkyhead force-pushed the bf2_sensitive_pins_cleanup_PR branch from d1c80b0 to 6960267 Compare June 28, 2024 15:36
@thinkyhead
Copy link
Member Author

There are methods to remove duplicates from these pin lists at compile-time, but I'll need to play with coding assistants until I find a solution that works. I'll merge this now in case anyone else wants to take a crack at that interesting puzzle….

@thinkyhead thinkyhead merged commit c95825a into MarlinFirmware:bugfix-2.1.x Jun 29, 2024
62 checks passed
@thinkyhead thinkyhead deleted the bf2_sensitive_pins_cleanup_PR branch June 29, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant