Minor edit

This commit is contained in:
Kristian Lauszus 2012-10-07 16:24:12 +02:00
parent a6d77dce92
commit 940b8e185b
2 changed files with 4 additions and 7 deletions

View file

@ -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

View file

@ -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) {