From 66c480c86b5fb3c22d43fecae0fa857aeaeabeac Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Mon, 31 May 2010 16:54:21 +0000 Subject: [PATCH] Don't print a bogus number of bluetooth devices found. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5559 8ced0084-cf51-0410-be5f-012b33b47a6e --- Externals/WiiUseSrc/Src/io_osx.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Externals/WiiUseSrc/Src/io_osx.m b/Externals/WiiUseSrc/Src/io_osx.m index bd7474002e..994cdc5f4b 100644 --- a/Externals/WiiUseSrc/Src/io_osx.m +++ b/Externals/WiiUseSrc/Src/io_osx.m @@ -224,8 +224,7 @@ void detectWiimote(int timeout) { */ int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) { - int found_devices; - int found_wiimotes; + int found_wiimotes = 0; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -246,9 +245,9 @@ int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) { CFRunLoopRun(); - found_wiimotes = 0; - +#if 0 /* XXX */ WIIUSE_INFO("Found %i bluetooth device(s).", found_devices); +#endif WIIMOTE_ENABLE_STATE(wm[found_wiimotes], WIIMOTE_STATE_DEV_FOUND);