Fix build issue in UAC1 configs

Class 1 configurations of apps that also define AUDIO_CLASS_FALLBACK as
1 failed to build as the devDesc_Audio2 struct now only exists when
AUDIO_CLASS is defined as 2. This change was introduced in commit
ca1925db7a.
This commit is contained in:
Sam Chesney
2017-03-10 12:22:11 +00:00
parent 248b73e285
commit cf8e3c1cf9

View File

@@ -643,7 +643,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
if (!DFU_mode_active)
{
#endif
#ifdef AUDIO_CLASS_FALLBACK
#if defined(AUDIO_CLASS_FALLBACK) && (AUDIO_CLASS != 1)
/* Return Audio 2.0 Descriptors with Audio 1.0 as fallback */
result = USB_StandardRequests(ep0_out, ep0_in,
(unsigned char*)&devDesc_Audio2, sizeof(devDesc_Audio2),