cython-hidapi icon indicating copy to clipboard operation
cython-hidapi copied to clipboard

read() should accept a timeout

Open Arachnid opened this issue 10 years ago • 1 comments

Currently, if you call read() when there is nothing to read, the process will lock up indefinitely in C code, so even a KeyboardInterrupt will not break out of it.

Arachnid avatar Mar 13 '14 10:03 Arachnid

Hi Arachnid, Try setting the "nonblocking" to 1, before reading. Slobodan

slobodan-ilic avatar Jul 09 '14 08:07 slobodan-ilic