forked from PAWPAW-Mirror/lib_xua
Move reset signalling in endpoint 0 from on reset to on enumeration.
This commit is contained in:
@@ -570,7 +570,10 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, cha
|
|||||||
VendorHostActive(1);
|
VendorHostActive(1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
|
int iap_reset = 1;
|
||||||
|
SET_SHARED_GLOBAL(g_iap_reset, iap_reset);
|
||||||
|
}
|
||||||
/* No data stage for this request, just do status stage */
|
/* No data stage for this request, just do status stage */
|
||||||
retVal = XUD_DoSetRequestStatus(ep0_in, 0);
|
retVal = XUD_DoSetRequestStatus(ep0_in, 0);
|
||||||
break;
|
break;
|
||||||
@@ -801,9 +804,7 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, cha
|
|||||||
|
|
||||||
if (retVal < 0)
|
if (retVal < 0)
|
||||||
{
|
{
|
||||||
int iap_reset = 1;
|
|
||||||
g_curUsbSpeed = XUD_ResetEndpoint(ep0_in, ep0_out);
|
g_curUsbSpeed = XUD_ResetEndpoint(ep0_in, ep0_out);
|
||||||
SET_SHARED_GLOBAL(g_iap_reset, iap_reset);
|
|
||||||
//printstrln("Resetting");
|
//printstrln("Resetting");
|
||||||
|
|
||||||
g_config = 0;
|
g_config = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user