summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChang Feng <[email protected]>2020-02-26 13:11:11 +0800
committerChang Feng <[email protected]>2020-02-26 13:11:11 +0800
commit5c760e1f74a95a972df09f820f0df27a423dae44 (patch)
tree00016532f73f97050e60ec1838530468fef8fb37 /examples
parentb8ea0f0a6b11bff6a4bb3f63f09485b2445969de (diff)
Add langid to example cdc_dual_ports.
Signed-off-by: Chang Feng <[email protected]>
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_dual_ports/src/usb_descriptors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/cdc_dual_ports/src/usb_descriptors.c b/examples/device/cdc_dual_ports/src/usb_descriptors.c
index 1e24a0f15..1b1d171b1 100644
--- a/examples/device/cdc_dual_ports/src/usb_descriptors.c
+++ b/examples/device/cdc_dual_ports/src/usb_descriptors.c
@@ -130,8 +130,10 @@ static uint16_t _desc_str[32];
// Invoked when received GET STRING DESCRIPTOR request
// Application return pointer to descriptor, whose contents must exist long enough for transfer to complete
-uint16_t const* tud_descriptor_string_cb(uint8_t index)
+uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid)
{
+ (void) langid;
+
uint8_t chr_count;
if ( index == 0)