Closed PastaJ36 closed 6 years ago
It's non blocking on purpose. The idea is that the function can be called faster than there are new packets available. I'll add it as a comment to make the purpose clear.
Now it works for me with 0 milliseconds, can't reproduce it anymore.
(From Rocky_4 @ discord): "you use a 0 millisecond timeout. I think there must be a -1 instead so it handle the call as a blocking one, 0 milliseconds are to fast"
https://github.com/PastaJ36/wooting-analog-reader/blob/284b44e2ee46ea2c023a2abd27785f8a27fa3448/src/wooting-analog-reader.c#L61