diff options
| author | Chang Feng <[email protected]> | 2020-02-26 13:14:04 +0800 |
|---|---|---|
| committer | Chang Feng <[email protected]> | 2020-02-26 13:14:04 +0800 |
| commit | 75afeb1266c217445e7834f0aef27f6416d765d0 (patch) | |
| tree | 79be0884c0124eb43efb12f963fa3573fc0cc2d0 | |
| parent | 5c760e1f74a95a972df09f820f0df27a423dae44 (diff) | |
Add langid to example cdc_msc.
Signed-off-by: Chang Feng <[email protected]>
| -rw-r--r-- | examples/device/cdc_msc/src/usb_descriptors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/cdc_msc/src/usb_descriptors.c b/examples/device/cdc_msc/src/usb_descriptors.c index e8527df0b..f91d1e6f8 100644 --- a/examples/device/cdc_msc/src/usb_descriptors.c +++ b/examples/device/cdc_msc/src/usb_descriptors.c @@ -155,8 +155,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) |
