Browse Source

Don't reference non-existant usb string descriptor

fixes #293, fixes #414
teensy4-core
PaulStoffregen 5 years ago
parent
commit
d9fe2d70a4
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      teensy3/usb_desc.c
  2. +2
    -2
      teensy4/usb_desc.c

+ 1
- 1
teensy3/usb_desc.c View File

@@ -603,7 +603,7 @@ static uint8_t config_descriptor[CONFIG_DESC_SIZE] = {
0x02, // bFunctionClass
0x02, // bFunctionSubClass
0x01, // bFunctionProtocol
4, // iFunction
0, // iFunction
#endif

#ifdef CDC_DATA_INTERFACE

+ 2
- 2
teensy4/usb_desc.c View File

@@ -621,7 +621,7 @@ PROGMEM const uint8_t usb_config_descriptor_480[CONFIG_DESC_SIZE] = {
0x02, // bFunctionClass
0x02, // bFunctionSubClass
0x01, // bFunctionProtocol
4, // iFunction
0, // iFunction
#endif

#ifdef CDC_DATA_INTERFACE
@@ -1455,7 +1455,7 @@ PROGMEM const uint8_t usb_config_descriptor_12[CONFIG_DESC_SIZE] = {
0x02, // bFunctionClass
0x02, // bFunctionSubClass
0x01, // bFunctionProtocol
4, // iFunction
0, // iFunction
#endif

#ifdef CDC_DATA_INTERFACE

Loading…
Cancel
Save