Proper hidraw device enumeration

This commit is contained in:
Jack Andersen
2017-05-11 16:52:45 -10:00
parent 64b949aecd
commit 505f0fef73
2 changed files with 59 additions and 62 deletions

View File

@@ -78,7 +78,7 @@ class HIDDeviceUdev final : public IHIDDevice
static void _threadProcUSBLL(HIDDeviceUdev* device)
{
unsigned i;
int i;
char errStr[256];
std::unique_lock<std::mutex> lk(device->m_initMutex);
udev_device* udevDev = udev_device_new_from_syspath(GetUdev(), device->m_devPath.c_str());