Эх сурвалжийг харах

fix(demo): fix cdc ecm string check

Signed-off-by: sakumisu <1203593632@qq.com>
sakumisu 1 долоо хоног өмнө
parent
commit
d50159638d

+ 1 - 1
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];