string descr 0 is language identifier

This commit is contained in:
Christina Quast 2015-02-27 15:22:25 +01:00
parent 33864fa36c
commit 6032e796b9
1 changed files with 9 additions and 1 deletions

View File

@ -37,6 +37,14 @@
* USB String descriptors
*------------------------------------------------------------------------------*/
static const unsigned char langDesc[] = {
USBStringDescriptor_LENGTH(1),
USBGenericDescriptor_STRING,
USBStringDescriptor_ENGLISH_US
};
const unsigned char productStringDescriptor[] = {
USBStringDescriptor_LENGTH(8),
@ -138,7 +146,7 @@ const unsigned char *stringDescriptors[] = {
* because 0 also stands for "no string desc"?
* on the other hand, dmesg output:
* "string descriptor 0 malformed (err = -61), defaulting to 0x0409" */
0,
langDesc,
productStringDescriptor,
snifferConfigStringDescriptor,
CCIDConfigStringDescriptor,