From 0860773197c7857d8246ca8d52c4220587a90cda Mon Sep 17 00:00:00 2001 From: MatMoul Date: Wed, 11 Jan 2017 20:56:19 +0100 Subject: [PATCH] possible bug --- src/classes/Keyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index f5fe9b2..b52636c 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -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;