X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7fbb75928749b74a0964ad159159066967191243..064e6a2f32719da5b7ed2ff3a8a32c5788e753d0:/Demos/Host/LowLevel/MassStorageHost/ConfigDescriptor.c diff --git a/Demos/Host/LowLevel/MassStorageHost/ConfigDescriptor.c b/Demos/Host/LowLevel/MassStorageHost/ConfigDescriptor.c index 1ba3244ed..ca84e45e0 100644 --- a/Demos/Host/LowLevel/MassStorageHost/ConfigDescriptor.c +++ b/Demos/Host/LowLevel/MassStorageHost/ConfigDescriptor.c @@ -84,7 +84,7 @@ uint8_t ProcessConfigurationDescriptor(void) return NoEndpointFound; } - USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(ConfigDescriptorData, USB_Descriptor_Endpoint_t); + USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Endpoint_t); /* Check if the endpoint is a bulk IN or bulk OUT endpoint, set appropriate globals */ if (EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR_DIR_IN)