Skip to content

Commit 6c29a71

Browse files
committed
add space for more modules
every new entry in EP static list is only one byte
1 parent d98cbc5 commit 6c29a71

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

hardware/arduino/avr/cores/arduino/PluggableUSB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#if defined(USBCON)
2323
#ifdef PLUGGABLE_USB_ENABLED
2424

25-
#define MAX_MODULES 6
25+
#define MAX_MODULES 10
2626

2727
static u8 lastIf = CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT;
2828
static u8 lastEp = CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT;

hardware/arduino/avr/cores/arduino/USBCore.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ u8 _initEndpoints[] =
326326
0,
327327
0,
328328
0,
329+
0,
330+
0,
331+
0,
332+
0,
333+
0,
334+
0,
329335
#endif
330336
};
331337

0 commit comments

Comments
 (0)