소스 검색

fix(demo): fix cdc ecm string check

Signed-off-by: sakumisu <1203593632@qq.com>
sakumisu 1 주 전
부모
커밋
d50159638d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      demo/cdc_ecm_template.c

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