Mutex code broken on debounce
masterhapero opened this issue · 2 comments
masterhapero commented
Describe the bug
As described here, the debounce code is missing else clauses to release mutex and in case of fast events will keep mutex for ever.
https://forums.developer.nvidia.com/t/jetson-gpio-interrupt-processing-on-nano/75378/24
To Reproduce
Try debounce
Expected behavior
Only get event once when you have events happening fast.
Additional context
https://github.com/NVIDIA/jetson-gpio/blob/master/lib/python/Jetson/GPIO/gpio_event.py#L236
anhmiuhv commented
Do you mind submit a patch to fix this?