File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
features/unsupported/USBHost/USBHost Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,13 @@ void USBHost::usb_process()
163
163
devices[i].activeAddress (true );
164
164
USB_DBG (" Address of %p: %d" , &devices[i], devices[i].getAddress ());
165
165
166
+ // Wait for the device to actually set the address. The Status stage
167
+ // of SET ADDRESS happens before the device implements the request.
168
+ // According to Universal Serial Bus Specification Revision 2.0 chapter
169
+ // 9.2.6.3 Set Address Processing, the device is allowed SetAddress()
170
+ // recovery interval of 2 ms.
171
+ ThisThread::sleep_for (2 );
172
+
166
173
// try to read again the device descriptor to check if the device
167
174
// answers to its new address
168
175
res = getDeviceDescriptor (&devices[i], buf, 8 );
You can’t perform that action at this time.
0 commit comments