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

config-pin seg fault on GetGpio #234

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

Conversation

leo5593
Copy link

@leo5593 leo5593 commented Oct 27, 2024

config-pin -g has errors with some pin as the gpio full name has a space.

root@BeagleBone:~# ./config-pin -a

Listing all pins with current mode and available modes:
Segmentation fault
root@BeagleBone:~# ./config-pin -g P9.11
Segmentation fault

Add a check to avoid segfault.
Fetch the full name.

GetGpio pin not found segmentation fault
Add check when pin is not found
Use gpio full name ( "P8_45 [hdmi]" ) for gpiofind
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.

1 participant