Oops - with new changes to the way the device Configuration Descriptor is retrieved...
[pub/USBasp.git] / Demos / Host / LowLevel / MassStorageHost / ConfigDescriptor.c
index 1ba3244..ca84e45 100644 (file)
@@ -84,7 +84,7 @@ uint8_t ProcessConfigurationDescriptor(void)
                        return NoEndpointFound;\r
                }\r
                \r
                        return NoEndpointFound;\r
                }\r
                \r
-               USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(ConfigDescriptorData, USB_Descriptor_Endpoint_t);\r
+               USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Endpoint_t);\r
 \r
                /* Check if the endpoint is a bulk IN or bulk OUT endpoint, set appropriate globals */\r
                if (EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR_DIR_IN)\r
 \r
                /* Check if the endpoint is a bulk IN or bulk OUT endpoint, set appropriate globals */\r
                if (EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR_DIR_IN)\r