hidapitester
hidapitester copied to clipboard
Report Error Output
When hidapitester fails to write, read, etc. (-1 returned), it would be good for it to output the error message obtained from hid_error(). even with the -v flag, I just get e.g. "wrote -1 bytes" - and the situations when I have encountered this in my own application using libusb have had different reasons for this failure, so the tool would be much more helpful if it can help quickly try different things and diagnose errors.
Indeed this is good to have.
BTW, hidapi_error() will be implemendted for libusb backend once https://github.com/libusb/hidapi/pull/698 is merged.
- https://github.com/libusb/hidapi/pull/698