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

pins could be 4 characters on 64bit RPIs #29

Open
thkukuk opened this issue Jan 27, 2023 · 0 comments
Open

pins could be 4 characters on 64bit RPIs #29

thkukuk opened this issue Jan 27, 2023 · 0 comments

Comments

@thkukuk
Copy link

thkukuk commented Jan 27, 2023

On my Raspberry Pi 3 (64bit kernel and userland) the pins are in the 4 character range (e.g. 2017 for GPIO23) according to kernel debug interface. But the library only uses the first two digits:

bytes_written = snprintf(buffer, BUFFER_MAX, "%d", pin->pin);

Writing manual a 2 digit number in the kernel interface with echo does not work (creates an error), but the "2017" does work.
Will fork the code and try to increase the buffer the next days when I have time again.

thkukuk added a commit to thkukuk/go-dht that referenced this issue Jan 28, 2023
thkukuk added a commit to thkukuk/go-dht that referenced this issue Jan 28, 2023
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

No branches or pull requests

1 participant