aboutsummaryrefslogtreecommitdiff
path: root/example-cdc/usb_stm32f103.c
diff options
context:
space:
mode:
Diffstat (limited to 'example-cdc/usb_stm32f103.c')
-rw-r--r--example-cdc/usb_stm32f103.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/example-cdc/usb_stm32f103.c b/example-cdc/usb_stm32f103.c
index b75dfdb..dd33e67 100644
--- a/example-cdc/usb_stm32f103.c
+++ b/example-cdc/usb_stm32f103.c
@@ -697,10 +697,7 @@ static int std_get_descriptor (uint8_t req, uint16_t value,
return USB_UNSUPPORT;
(void)length;
- if (rcp == DEVICE_RECIPIENT)
- return usb_cb_get_descriptor ((value >> 8), index, value);
-
- return USB_UNSUPPORT;
+ return usb_cb_get_descriptor (rcp, (value >> 8), (value & 0xff), index);
}
static int std_get_configuration (uint8_t req, uint16_t value,