summaryrefslogtreecommitdiff
path: root/examples/device/hid_composite
diff options
context:
space:
mode:
authorChang Feng <[email protected]>2020-02-26 13:37:02 +0800
committerChang Feng <[email protected]>2020-02-26 13:37:02 +0800
commitb97d4709c2fcd588b7827fa76d8917d713548744 (patch)
tree705619266887c126a690049bd53f5b5b4a41ec8c /examples/device/hid_composite
parent75afeb1266c217445e7834f0aef27f6416d765d0 (diff)
Add langid to examples.
Signed-off-by: Chang Feng <[email protected]>
Diffstat (limited to 'examples/device/hid_composite')
-rw-r--r--examples/device/hid_composite/src/usb_descriptors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/hid_composite/src/usb_descriptors.c b/examples/device/hid_composite/src/usb_descriptors.c
index 01f2cb59b..19689c90b 100644
--- a/examples/device/hid_composite/src/usb_descriptors.c
+++ b/examples/device/hid_composite/src/usb_descriptors.c
@@ -134,8 +134,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)