Merge pull request #1147 from kasjer/kasjer/msc-examples-serial-number

msc examples: Extend serial number to 12 digits
This commit is contained in:
Ha Thach 2021-10-18 00:49:22 +07:00 committed by GitHub
commit e927359d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@ char const* string_desc_arr [] =
(const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409) (const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409)
"TinyUSB", // 1: Manufacturer "TinyUSB", // 1: Manufacturer
"TinyUSB Device", // 2: Product "TinyUSB Device", // 2: Product
"123456", // 3: Serials, should use chip ID "123456789012", // 3: Serials, should use chip ID
"TinyUSB CDC", // 4: CDC Interface "TinyUSB CDC", // 4: CDC Interface
"TinyUSB MSC", // 5: MSC Interface "TinyUSB MSC", // 5: MSC Interface
}; };

View File

@ -218,7 +218,7 @@ char const* string_desc_arr [] =
(const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409) (const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409)
"TinyUSB", // 1: Manufacturer "TinyUSB", // 1: Manufacturer
"TinyUSB Device", // 2: Product "TinyUSB Device", // 2: Product
"123456", // 3: Serials, should use chip ID "123456789012", // 3: Serials, should use chip ID
"TinyUSB CDC", // 4: CDC Interface "TinyUSB CDC", // 4: CDC Interface
"TinyUSB MSC", // 5: MSC Interface "TinyUSB MSC", // 5: MSC Interface
}; };

View File

@ -141,7 +141,7 @@ char const* string_desc_arr [] =
(const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409) (const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409)
"TinyUSB", // 1: Manufacturer "TinyUSB", // 1: Manufacturer
"TinyUSB Device", // 2: Product "TinyUSB Device", // 2: Product
"123456", // 3: Serials, should use chip ID "123456789012", // 3: Serials, should use chip ID
}; };
static uint16_t _desc_str[32]; static uint16_t _desc_str[32];