From c696fc608b17e2e259c03e25d75b5c0c88ddf2cb Mon Sep 17 00:00:00 2001 From: Sam Chesney Date: Mon, 24 Feb 2014 16:59:21 +0000 Subject: [PATCH] Consolidated MAX_IAP_PACKET_SIZE and IAP_USB_BUFFER_TO_HOST_SIZE into a single define: IAP_MAX_PACKET_SIZE --- module_usb_audio/usb_buffer/usb_buffer.xc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module_usb_audio/usb_buffer/usb_buffer.xc b/module_usb_audio/usb_buffer/usb_buffer.xc index 8c6451ef..b9a61383 100644 --- a/module_usb_audio/usb_buffer/usb_buffer.xc +++ b/module_usb_audio/usb_buffer/usb_buffer.xc @@ -162,8 +162,8 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud #ifdef IAP xc_ptr iap_from_host_rdptr; - unsigned char iap_from_host_buffer[MAX_IAP_PACKET_SIZE+4]; - unsigned char iap_to_host_buffer[MAX_IAP_PACKET_SIZE]; + unsigned char iap_from_host_buffer[IAP_MAX_PACKET_SIZE+4]; + unsigned char iap_to_host_buffer[IAP_MAX_PACKET_SIZE]; int is_ack_iap; int is_reset; @@ -632,7 +632,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud } else { - if (iap_data_collected_from_device < IAP_USB_BUFFER_TO_HOST_SIZE) + if (iap_data_collected_from_device < IAP_MAX_PACKET_SIZE) { /* There is room in the collecting buffer for the data.. */ iap_to_host_buffer[iap_data_collected_from_device] = datum_iap;