From e8625e2b37b65eddc7066fb72a8d09508a2557be Mon Sep 17 00:00:00 2001 From: Russell Date: Mon, 21 Nov 2011 11:22:03 +0000 Subject: [PATCH] Get ZLP after early unplug working. --- module_usb_aud_shared/usb_buffer/decouple.xc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module_usb_aud_shared/usb_buffer/decouple.xc b/module_usb_aud_shared/usb_buffer/decouple.xc index c34650fc..d5faf895 100644 --- a/module_usb_aud_shared/usb_buffer/decouple.xc +++ b/module_usb_aud_shared/usb_buffer/decouple.xc @@ -1197,6 +1197,9 @@ void decouple(chanend c_mix_out, iap_reset = 0; iap_expecting_length = 1; SET_SHARED_GLOBAL(g_iap_reset, iap_reset); // Reset has been signalled + iap_waiting_on_send_to_host = 0; + iap_data_collected_from_device = 0; + SET_SHARED_GLOBAL(g_iap_to_host_flag, 0); } // Need to handle sending ZLP on iap_to_host_usb_ep_int to signal iOS device to collect from bulk endpoint. /* Check if buffer() has send IAP packet to host */