From de844391bda3e08b6a5e8d88d53b9afcea4ed292 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 4 Jan 2026 21:50:44 +0800 Subject: [PATCH] fix(demo): fix cdc ecm string check Signed-off-by: sakumisu <1203593632@qq.com> --- demo/cdc_ecm_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];