-
Notifications
You must be signed in to change notification settings - Fork 88
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
Use GPIO directory based on actual device tree path #7
base: master
Are you sure you want to change the base?
Conversation
I believe this is unnecessary as #6 already contains the fix for this problem. |
+1 |
1 similar comment
+1 |
updated the fix |
@lurch, that fix is worse because it only uses one path, this one checks both. |
Nope, #6 is the better fix, as the same path works on all versions of Raspberry Pi, and is in fact the "correct" path to use. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By testing the device tree directory we can detrermine whether to use the "old"
/sys/devices/virtual/gpio/gpio%u/%s
path or to use the one used after update to kernel 3.18.x:/sys/class/gpio/gpio%u/%s
, so both configurations are supported.