Move reset signalling in endpoint 0 from on reset to on enumeration.

This commit is contained in:
Russell
2011-10-12 10:51:30 +01:00
parent c12e0bfce5
commit 78a5861e3e

View File

@@ -570,7 +570,10 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, cha
VendorHostActive(1);
}
#endif
{
int iap_reset = 1;
SET_SHARED_GLOBAL(g_iap_reset, iap_reset);
}
/* No data stage for this request, just do status stage */
retVal = XUD_DoSetRequestStatus(ep0_in, 0);
break;
@@ -801,9 +804,7 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, cha
if (retVal < 0)
{
int iap_reset = 1;
g_curUsbSpeed = XUD_ResetEndpoint(ep0_in, ep0_out);
SET_SHARED_GLOBAL(g_iap_reset, iap_reset);
//printstrln("Resetting");
g_config = 0;