mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Check for hrJERR after ConfigureDevice too
This commit is contained in:
parent
01e0e6cf2d
commit
81ed31e1fe
1 changed files with 3 additions and 0 deletions
3
Usb.cpp
3
Usb.cpp
|
@ -579,6 +579,9 @@ again:
|
|||
// reset parent port
|
||||
devConfig[parent]->ResetHubPort(port);
|
||||
}
|
||||
} else if (rcode == hrJERR) { // Some devices returns this when plugged in - trying to initialize the device again usually works
|
||||
delay(100);
|
||||
goto again;
|
||||
} else if (rcode)
|
||||
return rcode;
|
||||
|
||||
|
|
Loading…
Reference in a new issue