From ffc451fbd9631b4e0a45bce36dda3e34facee2de Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 21 Sep 2011 06:35:28 +0000 Subject: Add LUFA-111009-BETA tag. git-svn-id: http://lufa-lib.googlecode.com/svn/tags/LUFA-111009-BETA@1929 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Demos/Host/LowLevel/GenericHIDHost/ConfigDescriptor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demos/Host/LowLevel/GenericHIDHost/ConfigDescriptor.c') diff --git a/Demos/Host/LowLevel/GenericHIDHost/ConfigDescriptor.c b/Demos/Host/LowLevel/GenericHIDHost/ConfigDescriptor.c index a068ea19..43faca59 100644 --- a/Demos/Host/LowLevel/GenericHIDHost/ConfigDescriptor.c +++ b/Demos/Host/LowLevel/GenericHIDHost/ConfigDescriptor.c @@ -102,7 +102,7 @@ uint8_t ProcessConfigurationDescriptor(void) USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Endpoint_t); /* If the endpoint is a IN type endpoint */ - if (EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR_DIR_IN) + if ((EndpointData->EndpointAddress & ENDPOINT_DIR_MASK) == ENDPOINT_DIR_IN) DataINEndpoint = EndpointData; else DataOUTEndpoint = EndpointData; -- cgit v1.2.3