forked from PAWPAW-Mirror/lib_xua
Check if DFU mode active before calling audio_requests in ep0
This commit is contained in:
@@ -589,7 +589,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
||||
* - Audio STREAMING interface request (In or Out)
|
||||
* - Audio endpoint request (Audio 1.0 Sampling freq requests are sent to the endpoint)
|
||||
*/
|
||||
if((interfaceNum == 0) || (interfaceNum == 1) || (interfaceNum == 2))
|
||||
if(((interfaceNum == 0) || (interfaceNum == 1) || (interfaceNum == 2)) && !DFU_mode_active)
|
||||
{
|
||||
#if (AUDIO_CLASS == 2) && defined(AUDIO_CLASS_FALLBACK)
|
||||
if(g_curUsbSpeed == XUD_SPEED_HS)
|
||||
|
||||
Reference in New Issue
Block a user