Sfoglia il codice sorgente

Don't reference non-existant usb string descriptor

fixes #293, fixes #414
main
PaulStoffregen 4 anni fa
parent
commit
d9fe2d70a4
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +1
    -1
      teensy3/usb_desc.c
  2. +2
    -2
      teensy4/usb_desc.c

+ 1
- 1
teensy3/usb_desc.c Vedi 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 Vedi 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…
Annulla
Salva