Skip to content

Commit

Permalink
USB_CFG_DESCR_PROPS_UNKNOWN now honors the USB_PROP_IS_RAM flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
starkjohann committed Jan 24, 2017
1 parent 672c6fd commit 2588689
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions usbdrv/usbdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ uchar flags = USB_FLG_MSGPTR_IS_ROM;
GET_DESCRIPTOR(USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER, usbDescriptorStringSerialNumber)
SWITCH_DEFAULT
if(USB_CFG_DESCR_PROPS_UNKNOWN & USB_PROP_IS_DYNAMIC){
if(USB_CFG_DESCR_PROPS_UNKNOWN & USB_PROP_IS_RAM){
flags = 0;
}
len = usbFunctionDescriptor(rq);
}
SWITCH_END
Expand All @@ -345,6 +348,9 @@ uchar flags = USB_FLG_MSGPTR_IS_ROM;
#endif
SWITCH_DEFAULT
if(USB_CFG_DESCR_PROPS_UNKNOWN & USB_PROP_IS_DYNAMIC){
if(USB_CFG_DESCR_PROPS_UNKNOWN & USB_PROP_IS_RAM){
flags = 0;
}
len = usbFunctionDescriptor(rq);
}
SWITCH_END
Expand Down

0 comments on commit 2588689

Please sign in to comment.