1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 01:06:11 +00:00

possible bug

This commit is contained in:
MatMoul 2017-01-11 20:56:19 +01:00
parent 83d16a23c1
commit 0860773197

View File

@ -504,7 +504,7 @@ bool Keyboard::sendDataInternal(unsigned char *data, uint16_t data_size) {
int r;
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);
usleep(1);
usleep(1000);
if (r < 0) return false;
unsigned char buffer[64];
int len = 0;