This commit is contained in:
parent
d59fe74356
commit
9fa14c2840
|
@ -214,16 +214,7 @@ void usb_manager::notify_usb_event(PNPDEV& pd, bool* retry)
|
|||
{
|
||||
ev = USB_EVENT_DEVICE_ARRIVED;
|
||||
evstr = "USB_EVENT_DEVICE_ARRIVED";
|
||||
if (ud.pid == 0x300 || ud.pid == 0x400 //G400 G300设备延迟通信,能够《暂缓》设备未准备好而导致通信错误问题
|
||||
|| ud.pid == 0x6005
|
||||
|| ud.pid == 0x8420 || ud.pid == 0x8200 || ud.pid == 0x8520
|
||||
|| ud.pid == 0x7002 || ud.pid == 0x1000
|
||||
)
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10000));
|
||||
}
|
||||
else if (ud.vid == 0x31c9 || ud.vid == 0x3072 || ud.vid == 0x2903 || ud.vid == 0X05DA || ud.vid == 0x3308)
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
|
||||
|
||||
}
|
||||
else if (LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT == pd.event)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue