mirror of
https://github.com/MatMoul/g810-led.git
synced 2026-10-25 08:18:14 +00:00
possible bug
This commit is contained in:
1 parent
83d16a23c1
commit
0860773197
1 file changed
+1
-1
@@ -504,7 +504,7 @@ bool Keyboard::sendDataInternal(unsigned char *data, uint16_t data_size) {
|
|||||||
int r;
|
int r;
|
||||||
if (data_size > 20) r = libusb_control_transfer(dev_handle, 0x21, 0x09, 0x0212, 1, data, data_size, 2000);
|
if (data_size > 20) r = libusb_control_transfer(dev_handle, 0x21, 0x09, 0x0212, 1, data, data_size, 2000);
|
||||||
else r = libusb_control_transfer(dev_handle, 0x21, 0x09, 0x0211, 1, data, data_size, 2000);
|
else r = libusb_control_transfer(dev_handle, 0x21, 0x09, 0x0211, 1, data, data_size, 2000);
|
||||||
usleep(1);
|
usleep(1000);
|
||||||
if (r < 0) return false;
|
if (r < 0) return false;
|
||||||
unsigned char buffer[64];
|
unsigned char buffer[64];
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user