Fix possible loss of data warning in LianLiUniHubController.cpp

This commit is contained in:
Adam Honse 2024-08-02 11:36:41 -05:00
parent 03a5b11d09
commit f167877a00

View file

@ -667,14 +667,14 @@ void LianLiUniHubController::SendConfig(uint16_t wIndex, uint8_t *config, size_
/*-------------------------------------*\
| Send packet |
\*-------------------------------------*/
size_t ret = libusb_control_transfer(handle, /* dev_handle */
0x40, /* bmRequestType */
0x80, /* bRequest */
0x00, /* wValue */
wIndex, /* wIndex */
config, /* data */
length, /* wLength */
1000); /* timeout */
size_t ret = libusb_control_transfer(handle, /* dev_handle */
0x40, /* bmRequestType */
0x80, /* bRequest */
0x00, /* wValue */
wIndex, /* wIndex */
config, /* data */
(uint16_t)length, /* wLength */
1000); /* timeout */
/*-------------------------------------*\
| Check for communication error |