diff options
| author | Chang Feng <[email protected]> | 2020-02-26 13:37:02 +0800 |
|---|---|---|
| committer | Chang Feng <[email protected]> | 2020-02-26 13:37:02 +0800 |
| commit | b97d4709c2fcd588b7827fa76d8917d713548744 (patch) | |
| tree | 705619266887c126a690049bd53f5b5b4a41ec8c /examples/device/usbtmc/src | |
| parent | 75afeb1266c217445e7834f0aef27f6416d765d0 (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.c | 4 |
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) |
