aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/MissileLauncher/ConfigDescriptor.c
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/MissileLauncher/ConfigDescriptor.c')
-rw-r--r--Projects/MissileLauncher/ConfigDescriptor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/MissileLauncher/ConfigDescriptor.c b/Projects/MissileLauncher/ConfigDescriptor.c
index a4a78805a..f852a8e36 100644
--- a/Projects/MissileLauncher/ConfigDescriptor.c
+++ b/Projects/MissileLauncher/ConfigDescriptor.c
@@ -102,8 +102,8 @@ 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)
- DataINEndpoint = EndpointData;
+ if ((EndpointData->EndpointAddress & ENDPOINT_DIR_MASK) == ENDPOINT_DIR_IN)
+ DataINEndpoint = EndpointData;
else
DataOUTEndpoint = EndpointData;
}