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 Nekotekina
parent 81b4c17d8d
commit f4849e5135
+1 -1
View File
@@ -735,7 +735,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)