mirror of
https://github.com/AxioDL/boo.git
synced 2025-07-09 14:45:55 +00:00
Add timeout to ioctl requests
This commit is contained in:
parent
d75a727a5d
commit
53fec8ac43
@ -47,7 +47,7 @@ class HIDDeviceUdev final : public IHIDDevice
|
||||
{
|
||||
m_usbIntfOutPipe | USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
|
||||
(unsigned)length,
|
||||
0,
|
||||
30,
|
||||
(void*)data
|
||||
};
|
||||
int ret = ioctl(m_devFd, USBDEVFS_BULK, &xfer);
|
||||
@ -66,7 +66,7 @@ class HIDDeviceUdev final : public IHIDDevice
|
||||
{
|
||||
m_usbIntfInPipe | USB_DIR_IN,
|
||||
(unsigned)length,
|
||||
0,
|
||||
30,
|
||||
data
|
||||
};
|
||||
return ioctl(m_devFd, USBDEVFS_BULK, &xfer);
|
||||
@ -204,7 +204,7 @@ class HIDDeviceUdev final : public IHIDDevice
|
||||
message,
|
||||
0,
|
||||
(uint16_t)length,
|
||||
0,
|
||||
30,
|
||||
(void*)data
|
||||
};
|
||||
int ret = ioctl(m_devFd, USBDEVFS_CONTROL, &xfer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user