Merge pull request #4046 from jamike/USBHOST_HUB_FIX

USBHOST : fix device disconnection from hub during hub port reset
pull/4072/head
Sam Grove 2017-03-29 23:02:39 +01:00 committed by GitHub
commit acaf5fbb42
1 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,9 @@ void USBHostHub::portReset(uint8_t port) {
#endif
while(1) {
status = getPortStatus(port);
/* disconnection since reset request */
if (!(status & PORT_CONNECTION))
break;
if (status & (PORT_ENABLE | PORT_RESET))
break;
if (status & PORT_OVER_CURRENT) {