From b6a4584a19e81c2e1f909355bbc64c2b8cea84f6 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 1 Feb 2010 01:27:00 +0000 Subject: Fixed Pipe_IsEndpointBound() function not taking the endpoint's direction into account. Re-added Pipe_IsEndpointBound() calls to the CDC and RNDIS host class drivers, not that the function has the correct behaviour for devices with bidirectional endpoints. --- LUFA/Drivers/USB/Class/Host/CDC.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LUFA/Drivers/USB/Class/Host/CDC.c') diff --git a/LUFA/Drivers/USB/Class/Host/CDC.c b/LUFA/Drivers/USB/Class/Host/CDC.c index 85864b05c..227ab94f8 100644 --- a/LUFA/Drivers/USB/Class/Host/CDC.c +++ b/LUFA/Drivers/USB/Class/Host/CDC.c @@ -182,7 +182,8 @@ static uint8_t DComp_CDC_Host_NextCDCInterfaceEndpoint(void* const CurrentDescri uint8_t EndpointType = (CurrentEndpoint->Attributes & EP_TYPE_MASK); - if ((EndpointType == EP_TYPE_BULK) || (EndpointType == EP_TYPE_INTERRUPT)) + if (((EndpointType == EP_TYPE_BULK) || (EndpointType == EP_TYPE_INTERRUPT)) && + !(Pipe_IsEndpointBound(CurrentEndpoint->EndpointAddress))) { return DESCRIPTOR_SEARCH_Found; } -- cgit v1.2.3