Skip to content

Commit 95bdb33

Browse files
committed
Adjust comments.
The way the implementation worked out doesn't seem to be quite what was envisioned. The _itf_count already exists as CFG_TUD_CDC (which is a max, but the relevant data is statically allocated anyway) The array _itf_arr[] sort-of exists as "cdcd_interface_t _cdcd_itf[]" in class/cdc/cdc_device.c; the indicides (instance or itf) are actually allocated quite late (as the host requests info) Perhaps it's the way I have the user sketch declare each Adafruit_USBD_CDC instead of just "give me another USB Virtual Serial.."
1 parent 29a9ee3 commit 95bdb33

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/arduino/Adafruit_USBD_CDC.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@
3333
#include "Adafruit_USBD_CDC.h"
3434
#include "Adafruit_USBD_Device.h"
3535

36-
// TODO Multiple instances supports
37-
// static uint8_t _itf_count;
38-
// static Adafruit_USBD_CDC* _itf_arr[]
39-
40-
#define EPOUT 0x00
36+
#define EPOUT 0x00 // Starting endpoints; adjusted elsewhere as needed
4137
#define EPIN 0x80
4238

4339
Adafruit_USBD_CDC Serial;

0 commit comments

Comments
 (0)