aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/PluggableUSB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/PluggableUSB.cpp')
-rw-r--r--cores/arduino/PluggableUSB.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp
index 5a53eb1..50fd798 100644
--- a/cores/arduino/PluggableUSB.cpp
+++ b/cores/arduino/PluggableUSB.cpp
@@ -23,9 +23,6 @@
#if defined(USBCON)
#ifdef PLUGGABLE_USB_ENABLED
-// TODO: set correct value for different CPUs
-#define MAX_EP 6
-
extern uint8_t _initEndpoints[];
PluggableUSB_ PluggableUSB;
@@ -64,7 +61,7 @@ bool PluggableUSB_::setup(USBSetup& setup, uint8_t j)
bool PluggableUSB_::plug(PUSBListNode *node)
{
- if ((lastEp + node->numEndpoints) >= MAX_EP) {
+ if ((lastEp + node->numEndpoints) > USB_ENDPOINTS) {
return false;
}