From 139af6c3b0dc87a51470099abb2e861df63e1a1e Mon Sep 17 00:00:00 2001 From: Christopher Reimer Date: Thu, 6 Apr 2017 00:39:28 +0200 Subject: [PATCH] Another fix for G910s firmware crashes --- src/classes/Keyboard.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index 03f3020..6001375 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -623,12 +623,10 @@ bool LedKeyboard::sendDataInternal(byte_buffer_t &data) { #if defined(hidapi) data.insert(data.begin(), 0x00); if (hid_write(m_hidHandle, const_cast(data.data()), data.size()) < 0) { - std::cout<<"Error: Can not write to hidraw, try with the libusb version"<(data2.data()), data2.size(), 1); + usleep(1100); // Do not remove or decrease this value below 1100 or there will be firmware crashes on G910. return true; #elif defined(libusb) if (data.size() > 20) {