diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index 4ebfe9f..a9da121 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -627,10 +627,9 @@ bool LedKeyboard::sendDataInternal(byte_buffer_t &data) { std::cout<<"Error: Can not write to hidraw, try with the libusb version"<(data2.data()), data2.size(), 0); + hid_read_timeout(m_hidHandle, const_cast(data2.data()), data2.size(), 1); return true; #elif defined(libusb) if (data.size() > 20) {