From 7d409924896f37b464442313f0603b2cba92e883 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Fri, 26 May 2017 17:26:43 +0200 Subject: [PATCH] patch multiple keyboards lost support --- 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 51be1bd..0a20607 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -810,7 +810,7 @@ bool LedKeyboard::setNativeEffect(NativeEffect effect, NativeEffectPart part, ui bool LedKeyboard::sendDataInternal(byte_buffer_t &data) { if (data.size() > 0) { #if defined(hidapi) - if (! open()) return false; + if (! open(currentDevice.vendorID, currentDevice.productID, currentDevice.serialNumber)) return false; 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"<