Skip to content

Commit e4d5d84

Browse files
hid: implement hid_error
Simply return the stored error string. It will be NULL if there are no errors.
1 parent f386562 commit e4d5d84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libusb/hid.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,8 +1853,7 @@ int HID_API_EXPORT_CALL hid_get_report_descriptor(hid_device *dev, unsigned char
18531853

18541854
HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
18551855
{
1856-
(void)dev;
1857-
return L"hid_error is not implemented yet";
1856+
return dev->error_string;
18581857
}
18591858

18601859

0 commit comments

Comments
 (0)