Fixed audio out buffer pointer off by 4 bytes
This commit is contained in:
@@ -1284,7 +1284,7 @@ unsigned char cfgDesc_Audio2[] =
|
||||
/* Endpoint descriptor (IN) */
|
||||
0x7, /* 0 bLength */
|
||||
5, /* 1 bDescriptorType */
|
||||
EP_ADR_IN_HID, /* 2 bEndpointAddress */
|
||||
EP_ADR_IN_HID, /* 2 bEndpointAddress */
|
||||
3, /* 3 bmAttributes (INTERRUPT) */
|
||||
64, /* 4 wMaxPacketSize */
|
||||
0, /* 5 wMaxPacketSize */
|
||||
|
||||
@@ -95,7 +95,7 @@ unsigned g_epStatusOut[NUM_EP_OUT];
|
||||
unsigned g_epStatusIn[NUM_EP_IN];
|
||||
|
||||
/* Global variable for current USB bus speed (i.e. FS/HS) */
|
||||
unsigned g_curUsbSpeed = XUD_SPEED_HS;
|
||||
unsigned g_curUsbSpeed = 0;
|
||||
|
||||
#ifdef HOST_ACTIVE_CALL
|
||||
void VendorHostActive(int active);
|
||||
@@ -842,6 +842,8 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
||||
{
|
||||
g_curUsbSpeed = XUD_ResetEndpoint(ep0_out, ep0_in);
|
||||
|
||||
//printintln(g_curUsbSpeed);
|
||||
|
||||
g_config = 0;
|
||||
|
||||
#ifdef DFU
|
||||
|
||||
Reference in New Issue
Block a user