forked from PAWPAW-Mirror/lib_xua
Audio Class endpoint checks now use ENDPOIN_ADDRESS defines
This commit is contained in:
@@ -529,7 +529,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
{
|
{
|
||||||
unsigned epNum = sp.wIndex & 0xff;
|
unsigned epNum = sp.wIndex & 0xff;
|
||||||
|
|
||||||
if ((epNum == 0x82) || (epNum == 0x01))
|
if ((epNum == ENDPOINT_ADDRESS_OUT_AUDIO) || (epNum == ENDPOINT_ADDRESS_IN_AUDIO))
|
||||||
{
|
{
|
||||||
#if (AUDIO_CLASS == 2) && defined(AUDIO_CLASS_FALLBACK)
|
#if (AUDIO_CLASS == 2) && defined(AUDIO_CLASS_FALLBACK)
|
||||||
if(g_curUsbSpeed == XUD_SPEED_FS)
|
if(g_curUsbSpeed == XUD_SPEED_FS)
|
||||||
|
|||||||
Reference in New Issue
Block a user