浏览代码

Don't reference non-existant usb string descriptor

fixes #293, fixes #414
teensy4-core
PaulStoffregen 5 年前
父节点
当前提交
d9fe2d70a4
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      teensy3/usb_desc.c
  2. +2
    -2
      teensy4/usb_desc.c

+ 1
- 1
teensy3/usb_desc.c 查看文件

0x02, // bFunctionClass 0x02, // bFunctionClass
0x02, // bFunctionSubClass 0x02, // bFunctionSubClass
0x01, // bFunctionProtocol 0x01, // bFunctionProtocol
4, // iFunction
0, // iFunction
#endif #endif


#ifdef CDC_DATA_INTERFACE #ifdef CDC_DATA_INTERFACE

+ 2
- 2
teensy4/usb_desc.c 查看文件

0x02, // bFunctionClass 0x02, // bFunctionClass
0x02, // bFunctionSubClass 0x02, // bFunctionSubClass
0x01, // bFunctionProtocol 0x01, // bFunctionProtocol
4, // iFunction
0, // iFunction
#endif #endif


#ifdef CDC_DATA_INTERFACE #ifdef CDC_DATA_INTERFACE
0x02, // bFunctionClass 0x02, // bFunctionClass
0x02, // bFunctionSubClass 0x02, // bFunctionSubClass
0x01, // bFunctionProtocol 0x01, // bFunctionProtocol
4, // iFunction
0, // iFunction
#endif #endif


#ifdef CDC_DATA_INTERFACE #ifdef CDC_DATA_INTERFACE

正在加载...
取消
保存