hidapitester icon indicating copy to clipboard operation
hidapitester copied to clipboard

Report Error Output

Open BenAlanSouthall opened this issue 2 years ago • 1 comments

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.

BenAlanSouthall avatar Aug 10 '23 14:08 BenAlanSouthall

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

mcuee avatar Sep 29 '24 07:09 mcuee