diff --git a/library.properties b/library.properties index 6b5b6ca..2b70fa9 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ESP32TinyUSB -version=1.3.2 +version=1.3.4 author=Dariusz Krempa maintainer=Dariusz Krempa sentence=USB functions for ESP32-S2 diff --git a/src/classes/cdc/cdcusb.cpp b/src/classes/cdc/cdcusb.cpp index b9af9d2..209b747 100644 --- a/src/classes/cdc/cdcusb.cpp +++ b/src/classes/cdc/cdcusb.cpp @@ -4,7 +4,7 @@ #if CFG_TUD_CDC -#define EPNUM_CDC 0x03 +#define EPNUM_CDC 0x02 static CDCusb* _CDCusb[2] = {}; enum { CDC_LINE_IDLE, CDC_LINE_1, CDC_LINE_2, CDC_LINE_3 }; @@ -25,7 +25,7 @@ void CDCusb::setBaseEP(uint8_t ep) bool CDCusb::begin(char* str) { // Interface number, string index, EP notification address and size, EP data address (out, in) and size. - uint8_t cdc[TUD_CDC_DESC_LEN] = {TUD_CDC_DESCRIPTOR(ifIdx, 4, (uint8_t)(0x80 | (_EPNUM_CDC + 2)), 8, (uint8_t)_EPNUM_CDC, (uint8_t)(0x81 + _EPNUM_CDC), 64)}; + uint8_t cdc[TUD_CDC_DESC_LEN] = {TUD_CDC_DESCRIPTOR(ifIdx, 4, (uint8_t)(0x80 | (_EPNUM_CDC - 1)), 8, (uint8_t)_EPNUM_CDC, (uint8_t)(0x80 | _EPNUM_CDC), 64)}; memcpy(&desc_configuration[total], cdc, sizeof(cdc)); total += sizeof(cdc); ifIdx += 2;