Fix possible loss of data warning in LianLiUniHubController.cpp
This commit is contained in:
parent
03a5b11d09
commit
f167877a00
1 changed files with 8 additions and 8 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue