add descriptor string count for tud_desc_set_t

This commit is contained in:
hathach
2018-07-23 16:12:14 +07:00
parent 2bff2a7d97
commit 262be103e0
3 changed files with 19 additions and 11 deletions

View File

@@ -85,7 +85,9 @@ tud_desc_set_t tud_desc_set =
{
.device = NULL,
.config = NULL,
.string_arr = (uint8_t const **) string_desc_arr,
.string_arr = (uint8_t const **) string_desc_arr,
.string_count = sizeof(string_desc_arr)/sizeof(string_desc_arr[0]),
.hid_report =
{