From b138b46496fe1941a268f52f0c0d315b824844b9 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Fri, 14 Feb 2014 16:20:12 +0000 Subject: [PATCH] buffer() tidy after reset work. --- module_usb_audio/usb_buffer/usb_buffer.xc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/module_usb_audio/usb_buffer/usb_buffer.xc b/module_usb_audio/usb_buffer/usb_buffer.xc index dfeadc95..5f21a020 100644 --- a/module_usb_audio/usb_buffer/usb_buffer.xc +++ b/module_usb_audio/usb_buffer/usb_buffer.xc @@ -658,11 +658,11 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud if (iap_data_remaining_to_device == 0) { /* We have read an entire packet - Mark ready to receive another */ - while(XUD_SetReady_Out(ep_iap_from_host, iap_from_host_buffer) == -1) - { + XUD_SetReady_Out(ep_iap_from_host, iap_from_host_buffer); + //{ /* Ignore resets */ - printintln(8000000); - } + // printintln(8000000); + //} } else { @@ -704,7 +704,6 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud if((reset1 == -1) || (reset2 == -1)) { - printstr("rst 2"); XUD_ResetEndpoint(ep_iap_to_host_int, null); XUD_ResetEndpoint(ep_iap_to_host, null); iap_send_reset(c_iap);