Skip to content

Commit d501596

Browse files
committed
fix(demo): fix cdc ecm string check
Signed-off-by: sakumisu <[email protected]>
1 parent fb6dbb4 commit d501596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/cdc_ecm_template.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static const uint8_t *device_quality_descriptor_callback(uint8_t speed)
8383

8484
static const char *string_descriptor_callback(uint8_t speed, uint8_t index)
8585
{
86-
if (index > 3) {
86+
if (index > 4) {
8787
return NULL;
8888
}
8989
return string_descriptors[index];

0 commit comments

Comments
 (0)