From bca143a23fa9e5aa63eaa5d1f4aad6849960bec6 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Thu, 24 Jan 2013 00:23:09 +0100 Subject: [PATCH] Don't change setReportMode when initializing the IR camera --- Wii.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Wii.cpp b/Wii.cpp index b1f155f5..61a25492 100755 --- a/Wii.cpp +++ b/Wii.cpp @@ -238,7 +238,10 @@ void WII::ACLData(uint8_t* l2capinbuf) { Notify(PSTR("\r\nExtension connected")); #endif unknownExtensionConnected = true; - setReportMode(false,0x35); // Also read the extension +#ifdef WIICAMERA + if(!isIRCameraEnabled()) // Don't activate the Motion Plus if we are trying to initialize the IR camera +#endif + setReportMode(false,0x35); // Also read the extension } else { #ifdef DEBUG