hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

Add support for errors in hid_error on MacOS

Open hardkrash opened this issue 4 years ago • 1 comments

The IOreturn value can be passed to the c library function mach_error_string to provide the error string for the error that was raised.

mach_error_string is defined in mach_error.h

char *mach_error_string(mach_error_t error_value); and a IOReturn is a version of mach_error_t

hardkrash avatar Jul 22 '21 23:07 hardkrash

@hardkrash Please help to create a pull request. Thanks.

mcuee avatar Jul 31 '21 13:07 mcuee

Oh, this is done as part of https://github.com/libusb/hidapi/pull/314. Available in the latest release.

Youw avatar Mar 12 '23 13:03 Youw