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
|
@ -114,9 +114,10 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
|
|||
case REQ_GetOSFeatureDescriptor:
|
||||
if (USB_ControlRequest.bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_VENDOR | REQREC_DEVICE))
|
||||
{
|
||||
void* DescriptorPointer;
|
||||
uint16_t DescriptorSize = USB_GetOSFeatureDescriptor(USB_ControlRequest.wValue, USB_ControlRequest.wIndex,
|
||||
&DescriptorPointer);
|
||||
const void* DescriptorPointer;
|
||||
uint16_t DescriptorSize = USB_GetOSFeatureDescriptor(USB_ControlRequest.wValue,
|
||||
USB_ControlRequest.wIndex,
|
||||
&DescriptorPointer);
|
||||
|
||||
if (DescriptorSize == NO_DESCRIPTOR)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue