diff options
| author | sakumisu <[email protected]> | 2026-01-04 21:50:44 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-01-04 21:50:44 +0800 |
| commit | d50159638df981d69aeb72539d3acddda30a7766 (patch) | |
| tree | e5275c637afd1403d4b46f4badfea4f48dd6d2fd | |
| parent | fb6dbb442eee93fa300dbc97e3fb534cee8d8499 (diff) | |
fix(demo): fix cdc ecm string check
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | demo/cdc_ecm_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/cdc_ecm_template.c b/demo/cdc_ecm_template.c index 7c6e98aa..7063d75e 100644 --- a/demo/cdc_ecm_template.c +++ b/demo/cdc_ecm_template.c @@ -83,7 +83,7 @@ static const uint8_t *device_quality_descriptor_callback(uint8_t speed) static const char *string_descriptor_callback(uint8_t speed, uint8_t index) { - if (index > 3) { + if (index > 4) { return NULL; } return string_descriptors[index]; |
