mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Minor edit
This commit is contained in:
parent
a6d77dce92
commit
940b8e185b
2 changed files with 4 additions and 7 deletions
1
BTD.cpp
1
BTD.cpp
|
@ -606,7 +606,6 @@ void BTD::HCI_task() {
|
|||
Notify(PSTR("\r\nConnected to Wiimote"));
|
||||
#endif
|
||||
hci_authentication_request(); // This will start the pairing with the wiimote
|
||||
//connectToWii = true;
|
||||
hci_state = HCI_SCANNING_STATE;
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
|
|
6
Wii.cpp
6
Wii.cpp
|
@ -612,7 +612,7 @@ void WII::Run() {
|
|||
}
|
||||
break;
|
||||
|
||||
case L2CAP_INIT_MOTION_PLUS_STATE: {
|
||||
case L2CAP_INIT_MOTION_PLUS_STATE:
|
||||
stateCounter++;
|
||||
if(stateCounter == 1)
|
||||
initMotionPlus();
|
||||
|
@ -626,15 +626,13 @@ void WII::Run() {
|
|||
l2cap_state = L2CAP_LED_STATE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case L2CAP_LED_STATE: {
|
||||
case L2CAP_LED_STATE:
|
||||
if(nunchuck_connected_flag)
|
||||
nunchuckConnected = true;
|
||||
setLedStatus();
|
||||
l2cap_state = L2CAP_DONE;
|
||||
break;
|
||||
}
|
||||
|
||||
case L2CAP_DONE:
|
||||
if(unknownExtensionConnected) {
|
||||
|
|
Loading…
Reference in a new issue