mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed problem when using the Motion Plus extension
This commit is contained in:
parent
660f667dc3
commit
6330f319f3
1 changed files with 6 additions and 0 deletions
6
Wii.cpp
6
Wii.cpp
|
@ -116,6 +116,12 @@ void WII::Reset() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WII::disconnect() { // Use this void to disconnect any of the controllers
|
void WII::disconnect() { // Use this void to disconnect any of the controllers
|
||||||
|
if(motionPlusConnected && !pBtd->motionPlusInside) { // Disable the Motion Plus extension
|
||||||
|
#ifdef DEBUG
|
||||||
|
Notify(PSTR("\r\nDeactivating Motion Plus"));
|
||||||
|
#endif
|
||||||
|
initExtension1(); // This will disable the Motion Plus extension
|
||||||
|
}
|
||||||
//First the HID interrupt channel has to be disconencted, then the HID control channel and finally the HCI connection
|
//First the HID interrupt channel has to be disconencted, then the HID control channel and finally the HCI connection
|
||||||
pBtd->l2cap_disconnection_request(hci_handle,0x0A, interrupt_scid, interrupt_dcid);
|
pBtd->l2cap_disconnection_request(hci_handle,0x0A, interrupt_scid, interrupt_dcid);
|
||||||
Reset();
|
Reset();
|
||||||
|
|
Loading…
Reference in a new issue