summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorChang Feng <[email protected]>2020-02-26 13:07:15 +0800
committerChang Feng <[email protected]>2020-02-26 13:07:15 +0800
commitb8ea0f0a6b11bff6a4bb3f63f09485b2445969de (patch)
tree5aed609c92f91380142ee7ea0b66bcdab5dbb60b /src/device/usbd.c
parentcb3de676635948f46a8dda93330ccc7fbbcb3e5d (diff)
Add langid support to descriptor string callback.
Signed-off-by: Chang Feng <[email protected]>
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 16670b944..68c5c5160 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -809,7 +809,7 @@ static bool process_get_descriptor(uint8_t rhport, tusb_control_request_t const
return false;
}else
{
- uint8_t const* desc_str = (uint8_t const*) tud_descriptor_string_cb(desc_index);
+ uint8_t const* desc_str = (uint8_t const*) tud_descriptor_string_cb(desc_index, p_request->wIndex);
TU_ASSERT(desc_str);
// first byte of descriptor is its size