USBHOST: put deviceInited to false when device disconnected

pull/4231/head
Michel Jaouen 2017-04-26 16:12:10 +02:00
parent bf2fc0a2cf
commit bae762eb24
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ void USBHost::usb_process()
idx = findDevice(usb_msg->hub, usb_msg->port, (USBHostHub *)(usb_msg->hub_parent));
if (idx != -1) {
freeDevice((USBDeviceConnected*)&devices[idx]);
deviceInited[idx]=false;
}
if (controlListState) {