Add langid to example cdc_dual_ports.
Signed-off-by: Chang Feng <chang_196700@hotmail.com>
This commit is contained in:
parent
b8ea0f0a6b
commit
5c760e1f74
|
@ -130,8 +130,10 @@ static uint16_t _desc_str[32];
|
||||||
|
|
||||||
// Invoked when received GET STRING DESCRIPTOR request
|
// Invoked when received GET STRING DESCRIPTOR request
|
||||||
// Application return pointer to descriptor, whose contents must exist long enough for transfer to complete
|
// 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;
|
uint8_t chr_count;
|
||||||
|
|
||||||
if ( index == 0)
|
if ( index == 0)
|
||||||
|
|
Loading…
Reference in New Issue