From 940b8e185b4627bf760954929404fd70e727ad09 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Sun, 7 Oct 2012 16:24:12 +0200 Subject: [PATCH] Minor edit --- BTD.cpp | 3 +-- Wii.cpp | 8 +++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/BTD.cpp b/BTD.cpp index 6a220925..ab55885b 100644 --- a/BTD.cpp +++ b/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 @@ -666,7 +665,7 @@ void BTD::HCI_task() { PrintHex(disc_bdaddr[0]); #endif l2capConnectionClaimed = false; - if(strncmp((const char *)remote_name, "Nintendo", 8) == 0) { + if(strncmp((const char*)remote_name, "Nintendo", 8) == 0) { #ifdef DEBUG Notify(PSTR("\r\nWiimote is connecting")); #endif diff --git a/Wii.cpp b/Wii.cpp index 2bd9caa1..27f41727 100644 --- a/Wii.cpp +++ b/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; - } + break; case L2CAP_DONE: if(unknownExtensionConnected) {