Remove remaining void* descriptor casts in the projects and demos that were not removed when the GetDescriptor callback function's signature was altered.
This commit is contained in:
parent
263178fbb6
commit
b3c6599bb7
7 changed files with 28 additions and 27 deletions
|
@ -213,8 +213,8 @@ uint16_t USB_GetOSFeatureDescriptor(const uint16_t wValue,
|
|||
const uint8_t wIndex,
|
||||
const void** const DescriptorAddress)
|
||||
{
|
||||
void* Address = NULL;
|
||||
uint16_t Size = NO_DESCRIPTOR;
|
||||
const void* Address = NULL;
|
||||
uint16_t Size = NO_DESCRIPTOR;
|
||||
|
||||
/* Check if a device level OS feature descriptor is being requested */
|
||||
if (wValue == 0x0000)
|
||||
|
@ -222,7 +222,7 @@ uint16_t USB_GetOSFeatureDescriptor(const uint16_t wValue,
|
|||
/* Only the Extended Device Compatibility descriptor is supported */
|
||||
if (wIndex == EXTENDED_COMPAT_ID_DESCRIPTOR)
|
||||
{
|
||||
Address = (void*)&DevCompatIDs;
|
||||
Address = &DevCompatIDs;
|
||||
Size = sizeof(USB_OSCompatibleIDDescriptor_t);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue