From aeb1d58bf347bed3008dbd76d76ce1720fcc6608 Mon Sep 17 00:00:00 2001 From: Michael Banther Date: Tue, 15 Oct 2019 10:44:34 +0100 Subject: [PATCH] The interface number occupies the entire sp.wIndex field. --- lib_xua/src/hid/hid.xc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_xua/src/hid/hid.xc b/lib_xua/src/hid/hid.xc index 972158ff..0152b071 100644 --- a/lib_xua/src/hid/hid.xc +++ b/lib_xua/src/hid/hid.xc @@ -147,7 +147,7 @@ XUD_Result_t HidInterfaceClassRequests( */ uint8_t duration = ( sp.wValue & 0xFF00 ) >> 6; // Transform into units of 1ms. uint8_t reportId = sp.wValue & 0x00FF; - uint16_t interfaceNum = ( sp.wIndex & 0xFF00 ) >> 8; + uint16_t interfaceNum = sp.wIndex; /* As long as our HID Report Descriptor does not include a Report ID, any Report ID value other than zero