cython-hidapi
cython-hidapi copied to clipboard
read() should accept a timeout
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.
Hi Arachnid, Try setting the "nonblocking" to 1, before reading. Slobodan