From d92614ced9afb5d599b7323180722316ae2f9d5f Mon Sep 17 00:00:00 2001 From: Ed Clarke Date: Wed, 14 Nov 2018 10:13:29 +0000 Subject: [PATCH] Interface number now passed back to app from EP0 --- lib_xua/src/core/endpoint0/xua_endpoint0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_xua/src/core/endpoint0/xua_endpoint0.c b/lib_xua/src/core/endpoint0/xua_endpoint0.c index 48711656..0304369e 100755 --- a/lib_xua/src/core/endpoint0/xua_endpoint0.c +++ b/lib_xua/src/core/endpoint0/xua_endpoint0.c @@ -848,13 +848,13 @@ void XUA_Endpoint0_lite_loop(XUD_Result_t result, USB_SetupPacket_t sp, chanend switch (sp.wIndex) { /* Check for audio stream from host start/stop */ -#if (NUM_USB_CHAN_OUT > 0) && (AUDIO_CLASS == 2) +#if (NUM_USB_CHAN_OUT > 0) case INTERFACE_NUMBER_AUDIO_OUTPUT: *output_interface_num = sp.wValue; break; #endif -#if (NUM_USB_CHAN_IN > 0) && (AUDIO_CLASS == 2) +#if (NUM_USB_CHAN_IN > 0) case INTERFACE_NUMBER_AUDIO_INPUT: *input_interface_num = sp.wValue; break;