mirror of https://github.com/ARMmbed/mbed-os.git
USBHOST: put deviceInited to false when device disconnected
parent
bf2fc0a2cf
commit
bae762eb24
|
@ -222,6 +222,7 @@ void USBHost::usb_process()
|
||||||
idx = findDevice(usb_msg->hub, usb_msg->port, (USBHostHub *)(usb_msg->hub_parent));
|
idx = findDevice(usb_msg->hub, usb_msg->port, (USBHostHub *)(usb_msg->hub_parent));
|
||||||
if (idx != -1) {
|
if (idx != -1) {
|
||||||
freeDevice((USBDeviceConnected*)&devices[idx]);
|
freeDevice((USBDeviceConnected*)&devices[idx]);
|
||||||
|
deviceInited[idx]=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (controlListState) {
|
if (controlListState) {
|
||||||
|
|
Loading…
Reference in New Issue