summaryrefslogtreecommitdiff
path: root/examples/device/usbtmc/src
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/usbtmc/src
parent75afeb1266c217445e7834f0aef27f6416d765d0 (diff)
Add langid to examples.
Signed-off-by: Chang Feng <[email protected]>
Diffstat (limited to 'examples/device/usbtmc/src')
-rw-r--r--examples/device/usbtmc/src/usb_descriptors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/usbtmc/src/usb_descriptors.c b/examples/device/usbtmc/src/usb_descriptors.c
index 27e1bdaa9..92b1dce61 100644
--- a/examples/device/usbtmc/src/usb_descriptors.c
+++ b/examples/device/usbtmc/src/usb_descriptors.c
@@ -216,8 +216,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;
+
size_t chr_count;
if ( index == 0)