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

Update gpio device path to work with the latest raspbian #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markallanson
Copy link

No description provided.

@ifree92
Copy link

ifree92 commented Jul 27, 2017

Agree with this PR.

Please add it to master branch.

It would be better if we're using this define

line 19: #define GPIO_CLASS_PATH "/sys/class/gpio/"

for this fix

line 30: int size = snprintf(path, PATH_MAX, GPIO_CLASS_PATH "gpio%u/%s", pin, filename);

@lurch
Copy link

lurch commented Sep 19, 2020

Duplicate of #6

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.

3 participants