Forgot to put serial inside DEBUG tags

This commit is contained in:
Kristian Lauszus 2012-08-24 00:59:43 +02:00
parent dfa329a2b9
commit 42023d557a

View file

@ -368,14 +368,18 @@ void WII::ACLData(uint8_t* l2capinbuf) {
if(!extensionConnected) { if(!extensionConnected) {
extensionConnected = true; extensionConnected = true;
unknownExtensionConnected = true; unknownExtensionConnected = true;
Serial.print("\r\nExtension connected to Motion Plus"); #ifdef DEBUG
Notify(PSTR("\r\nExtension connected to Motion Plus"));
#endif
} }
} }
else { else {
if(extensionConnected && !unknownExtensionConnected) { if(extensionConnected && !unknownExtensionConnected) {
extensionConnected = false; extensionConnected = false;
unknownExtensionConnected = true; unknownExtensionConnected = true;
Serial.print("\r\nExtension disconnected from Motion Plus"); #ifdef DEBUG
Notify(PSTR("\r\nExtension disconnected from Motion Plus"));
#endif
nunchuckConnected = false; // There is no extension connected to the Motion Plus if this report is sent nunchuckConnected = false; // There is no extension connected to the Motion Plus if this report is sent
} }
} }