Fix return value in hid_write_control

This won't really fix anything, but might spare us some future headaches.
This commit is contained in:
Megamouse 2020-11-17 02:23:39 +01:00 committed by Ivan
parent 9220f5e77c
commit 8961cf86eb

View File

@ -678,7 +678,7 @@ int HID_API_EXPORT HID_API_CALL hid_write_control(hid_device *dev, const unsigne
bytes_written = -1;
}
return length;
return bytes_written;
}
int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char *data, size_t length, int milliseconds)