diff --git a/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp b/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp index 47050b911c..806a3b1431 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp @@ -176,7 +176,7 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event) DoExtensionConnectedDisconnected(); /* It doesn't seem to be needed but shouldn't it at least take 25 ms to reconnect an extension after we disconnected another? */ - Sleep(25); + sleep(25); } // Update status @@ -208,4 +208,4 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event) DoExtensionConnectedDisconnected(); break; } -} \ No newline at end of file +} diff --git a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp index ed3270d6ba..a8794cc2c1 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp @@ -523,12 +523,13 @@ void FillReportExtension(wm_extension& _ext) by 0x08 */ memcpy(g_RegExtTmpReport + 0x08, &_ext, sizeof(_ext)); +#ifdef _WIN32 /**/if(GetAsyncKeyState('V')) // Log { std::string Temp = ArrayToString(g_RegExtTmpReport, sizeof(_ext), 0x08); wprintf("Nunchuck DataFrame: %s\n", Temp.c_str()); } - +#endif // Encrypt it wiimote_encrypt(&g_ExtKey, &g_RegExtTmpReport[0x08], 0x08, sizeof(_ext));