summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2026-01-04 21:50:44 +0800
committersakumisu <[email protected]>2026-01-14 14:38:44 +0800
commitde844391bda3e08b6a5e8d88d53b9afcea4ed292 (patch)
treecb89c88093410689888318c7f37bcdb7b74f1a9c
parent5ffe9cbe7fb41489d99806daa8572124ace1b99b (diff)
fix(demo): fix cdc ecm string check
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--demo/cdc_ecm_template.c2
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];