We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17afd65 commit aaec9e2Copy full SHA for aaec9e2
hardware/arduino/avr/cores/arduino/USBCore.cpp
@@ -204,7 +204,7 @@ class LockEP
204
LockEP(u8 ep) : _sreg(SREG)
205
{
206
cli();
207
- SetEP(ep & 7);
+ SetEP(ep & USB_ENDPOINTS_MASK);
208
}
209
~LockEP()
210
hardware/arduino/avr/cores/arduino/USBDesc.h
@@ -23,6 +23,7 @@
23
#else
24
#define USB_ENDPOINTS 5 // AtMegaxxU2
25
#endif
26
+#define USB_ENDPOINTS_MASK 7
27
28
#define ISERIAL_MAX_LEN 20
29
0 commit comments