From 42023d557ac82e5a95664841c4f1c87cc851c075 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Fri, 24 Aug 2012 00:59:43 +0200 Subject: [PATCH] Forgot to put serial inside DEBUG tags --- Wii.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Wii.cpp b/Wii.cpp index 6d1c7d70..746c13b6 100644 --- a/Wii.cpp +++ b/Wii.cpp @@ -368,14 +368,18 @@ void WII::ACLData(uint8_t* l2capinbuf) { if(!extensionConnected) { extensionConnected = true; unknownExtensionConnected = true; - Serial.print("\r\nExtension connected to Motion Plus"); +#ifdef DEBUG + Notify(PSTR("\r\nExtension connected to Motion Plus")); +#endif } } else { if(extensionConnected && !unknownExtensionConnected) { extensionConnected = false; 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 } }