Fixed audio out buffer pointer off by 4 bytes

This commit is contained in:
Ross Owen
2012-07-16 14:07:38 +01:00
parent e2c55254fa
commit 71885fcdb7
7 changed files with 212 additions and 184 deletions

View File

@@ -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