Skip to content

Commit

Permalink
Revert CDC endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
chegewara committed Aug 2, 2021
1 parent ca4e924 commit 991acff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32TinyUSB
version=1.3.2
version=1.3.4
author=Dariusz Krempa <[email protected]>
maintainer=Dariusz Krempa <[email protected]>
sentence=USB functions for ESP32-S2
Expand Down
4 changes: 2 additions & 2 deletions src/classes/cdc/cdcusb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand All @@ -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;
Expand Down

0 comments on commit 991acff

Please sign in to comment.