You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the output continuously scrolls "No Edge Received".
Expected behavior
The program should have blocked until the button was pressed.
Platform (please complete the following information):
OS: Raspbian Bookworm
Board: Pi 4 B 4GB
Kernel: 6.6.16-v8+
Additional context
The program has been working for several years. After a kernel update, it stopped working. Experimentation shows that reading the state of the button does work.
I've searched around, and found some references that this might be related to deprecation of /sys/class/gpio?
FWIW, I tried python and RPi.GPIO and it sees the button press as well, but attempt to add event for edge detection fails.
I tried running my test program under strace and got:
Describe the bug
Using the specified kernel, a call go WaitForEdge immediately unblocks and returns.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The program should have blocked until the button was pressed.
Platform (please complete the following information):
Additional context
The program has been working for several years. After a kernel update, it stopped working. Experimentation shows that reading the state of the button does work.
I've searched around, and found some references that this might be related to deprecation of /sys/class/gpio?
FWIW, I tried python and RPi.GPIO and it sees the button press as well, but attempt to add event for edge detection fails.
I tried running my test program under strace and got:
The text was updated successfully, but these errors were encountered: