mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Release PS3 controller bugfix
This commit is contained in:
parent
7ca5fcf048
commit
d33c436b5b
1 changed files with 4 additions and 0 deletions
4
BTD.cpp
4
BTD.cpp
|
@ -160,6 +160,10 @@ uint8_t BTD::Init(uint8_t parent, uint8_t port, bool lowspeed) {
|
|||
#endif
|
||||
setMoveBdaddr(my_bdaddr);
|
||||
}
|
||||
rcode = pUsb->setConf(bAddress, epInfo[ BTD_CONTROL_PIPE ].epAddr, 0); // Reset configuration value
|
||||
pUsb->setAddr(bAddress, 0, 0); // Reset address
|
||||
Release(); // Release device
|
||||
return USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED; // return
|
||||
}
|
||||
else {
|
||||
num_of_conf = ((USB_DEVICE_DESCRIPTOR*)buf)->bNumConfigurations;
|
||||
|
|
Loading…
Reference in a new issue