We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d30a9a6 commit edbba13Copy full SHA for edbba13
features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp
@@ -74,6 +74,11 @@ bool USBHostMSD::connect()
74
break;
75
76
if (msd_device_found) {
77
+ /* As this is done in a specific thread
78
+ * this lock is taken to avoid to process a disconnection in
79
+ * usb process during the device registering */
80
+ USBHost::Lock Lock(host);
81
+
82
bulk_in = dev->getEndpoint(msd_intf, BULK_ENDPOINT, IN);
83
bulk_out = dev->getEndpoint(msd_intf, BULK_ENDPOINT, OUT);
84
0 commit comments