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

Canned messages: allow GPIO0 with "scan and select" input #5838

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

todd-herbert
Copy link
Contributor

Fixes #5834

Previously, the module required users to set one of the input broker pins. This prevented the use of GPIO0.

Now, if the input broker pins are set to 0, GPIO0 will be used as the pin for the canned message module's scanAndSelect input method.

An additional check is added to scanAndSelect init, which disables canned messages if the selected pin conflicts with the user button assignment. Users can resolve a conflict by remapping the user button in device settings.

@todd-herbert todd-herbert marked this pull request as draft January 13, 2025 10:19
We don't really need to #include radio code here just to check if the pin is RADIOLIB_NC. We're only interested if scanAndSelect pin matches user button pin, but they won't match if user button is RADIOLIB_NC.
@todd-herbert todd-herbert marked this pull request as ready for review January 13, 2025 11:22
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.

[Bug]: Canned message pin configuration doesn't allow zero
1 participant