From daf378e4a52a3940c5f8a9f14e95a4b48ab8f290 Mon Sep 17 00:00:00 2001 From: Michael Banther Date: Tue, 26 Nov 2019 11:37:38 +0000 Subject: [PATCH] Add in the code to call HidInterfaceClassRequests(). It was inadvertently removed during the removal of the XUA_Endpoint0_lite_loop() function. --- lib_xua/src/core/endpoint0/xua_endpoint0.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib_xua/src/core/endpoint0/xua_endpoint0.c b/lib_xua/src/core/endpoint0/xua_endpoint0.c index 3c92defa..91576287 100755 --- a/lib_xua/src/core/endpoint0/xua_endpoint0.c +++ b/lib_xua/src/core/endpoint0/xua_endpoint0.c @@ -617,6 +617,12 @@ void XUA_Endpoint0_loop(XUD_Result_t result, USB_SetupPacket_t sp, chanend c_ep0 device_reboot(); } } +#endif +#if( 0 < HID_CONTROLS ) + if (interfaceNum == INTERFACE_NUMBER_HID) + { + result = HidInterfaceClassRequests(ep0_out, ep0_in, &sp); + } #endif /* Check for: - Audio CONTROL interface request - always 0, note we check for DFU first * - Audio STREAMING interface request (In or Out)