diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index 1feea96..5b9a9cf 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -562,10 +562,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) {