From 78a5861e3e7d931db431deed1f7511414fda11d6 Mon Sep 17 00:00:00 2001 From: Russell Date: Wed, 12 Oct 2011 10:51:30 +0100 Subject: [PATCH] Move reset signalling in endpoint 0 from on reset to on enumeration. --- module_usb_aud_shared/endpoint0/endpoint0.xc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module_usb_aud_shared/endpoint0/endpoint0.xc b/module_usb_aud_shared/endpoint0/endpoint0.xc index 4fd0cb12..8fd0715d 100755 --- a/module_usb_aud_shared/endpoint0/endpoint0.xc +++ b/module_usb_aud_shared/endpoint0/endpoint0.xc @@ -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;