forked from PAWPAW-Mirror/lib_xua
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:
@@ -643,7 +643,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
if (!DFU_mode_active)
|
if (!DFU_mode_active)
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
#ifdef AUDIO_CLASS_FALLBACK
|
#if defined(AUDIO_CLASS_FALLBACK) && (AUDIO_CLASS != 1)
|
||||||
/* Return Audio 2.0 Descriptors with Audio 1.0 as fallback */
|
/* Return Audio 2.0 Descriptors with Audio 1.0 as fallback */
|
||||||
result = USB_StandardRequests(ep0_out, ep0_in,
|
result = USB_StandardRequests(ep0_out, ep0_in,
|
||||||
(unsigned char*)&devDesc_Audio2, sizeof(devDesc_Audio2),
|
(unsigned char*)&devDesc_Audio2, sizeof(devDesc_Audio2),
|
||||||
|
|||||||
Reference in New Issue
Block a user