aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2017-01-24 23:46:24 +0100
committerChristian Starkjohann <cs+github@obdev.at>2017-01-24 23:46:24 +0100
commit2588689f2a8044cc2826cef2729f326a2eb593cd (patch)
tree9e55f8bfec9ddf68b2b3efbe54c3ab22ea5bbc92
parent672c6fdb930ca73ff37ab13ca8ca66700467980d (diff)
downloadv-usb-2588689f2a8044cc2826cef2729f326a2eb593cd.tar.gz
v-usb-2588689f2a8044cc2826cef2729f326a2eb593cd.tar.bz2
v-usb-2588689f2a8044cc2826cef2729f326a2eb593cd.zip
`USB_CFG_DESCR_PROPS_UNKNOWN` now honors the `USB_PROP_IS_RAM` flag.
-rw-r--r--usbdrv/usbdrv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usbdrv/usbdrv.c b/usbdrv/usbdrv.c
index 44c9c3f..1d80ac6 100644
--- a/usbdrv/usbdrv.c
+++ b/usbdrv/usbdrv.c
@@ -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
@@ -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