aboutsummaryrefslogtreecommitdiff
path: root/example-cdc/usb_stm32f103.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2013-11-02 15:17:48 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2013-11-02 15:17:48 +0900
commit5a4a71d1ffdd557179d2c3ea3ecf6dd6928929ac (patch)
tree5792c4478010e17d39ff6ea10a01c33ba5839456 /example-cdc/usb_stm32f103.c
parent9fe6cefdc0564b6bb3d938c0c1074d57a4b9500f (diff)
Update from Gnuk
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,