From 559b2185e90114d93f11bb910c0a6b96a17ca871 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Tue, 17 Jan 2017 14:44:09 +0000 Subject: [PATCH] Fixed UAC1 build configs with no FB endpoint. --- module_usb_audio/usb_buffer/usb_buffer.xc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/usb_buffer/usb_buffer.xc b/module_usb_audio/usb_buffer/usb_buffer.xc index c91d95ba..19e20585 100644 --- a/module_usb_audio/usb_buffer/usb_buffer.xc +++ b/module_usb_audio/usb_buffer/usb_buffer.xc @@ -258,9 +258,11 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, XUD_SetReady_In(ep_hid, g_hidData, 1); #endif -#if (AUDIO_CLASS == 1) +#if (AUDIO_CLASS == 1) +#if (NUM_USB_CHAN_IN == 0) || defined (UAC_FORCE_FEEDBACK_EP) /* In UAC1 we dont use a stream start event (and we are always FS) so mark FB EP ready now */ XUD_SetReady_In(ep_aud_fb, fb_clocks, 3); +#endif #endif while(1)