Merge pull request #1573 from kamiyo/fix-wiimote-speaker

Fix wiimotespeaker emulation affecting real wiimote
This commit is contained in:
skidau 2014-11-21 13:13:21 +11:00
commit 15e7a8c247
1 changed files with 2 additions and 3 deletions

View File

@ -784,12 +784,11 @@ void Wiimote::HidOutputReport(const wm_report* const sr, const bool send_ack)
break;
case WM_WRITE_SPEAKER_DATA : // 0x18
{
//wm_speaker_data *spkz = (wm_speaker_data*)sr->data;
//ERROR_LOG(WIIMOTE, "WM_WRITE_SPEAKER_DATA len:%x %s", spkz->length,
// ArrayToString(spkz->data, spkz->length, 100, false).c_str());
Wiimote::SpeakerData((wm_speaker_data*)sr->data);
}
if (WIIMOTE_SRC_EMU & g_wiimote_sources[m_index])
Wiimote::SpeakerData((wm_speaker_data*) sr->data);
return; // no ack
break;