From ff611584662e9955047294a0b7d2b9fe1f8a4354 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 23 Jul 2014 03:32:15 +0200 Subject: [PATCH] IOWin: Make error 0x1F less noisy. This error code is used by third-party WiiMote adapters to signal the absence of a WiiMote connected to their virtual HID port. Ignoring it removes some log spamming and doesn't change anything in terms of behavior. --- Source/Core/Core/HW/WiimoteReal/IOWin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp index ec72599286..8460294da0 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp +++ b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp @@ -673,7 +673,9 @@ int _IOWrite(HANDLE &dev_handle, OVERLAPPED &hid_overlap_write, enum win_bt_stac // Semaphore timeout NOTICE_LOG(WIIMOTE, "WiimoteIOWrite[MSBT_STACK_MS]: Unable to send data to the Wiimote"); } - else + else if (err != 0x1F) // Some third-party adapters (DolphinBar) use this + // error code to signal the absence of a WiiMote + // linked to the HID device. { WARN_LOG(WIIMOTE, "IOWrite[MSBT_STACK_MS]: ERROR: %08x", err); }