We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b196a4a commit 8e35973Copy full SHA for 8e35973
hardware/arduino/sam/cores/arduino/USB/USBCore.cpp
@@ -139,7 +139,7 @@ uint32_t USBD_Available(uint32_t ep)
139
// Return number of bytes read
140
uint32_t USBD_Recv(uint32_t ep, void* d, uint32_t len)
141
{
142
- if (!_usbConfiguration || len < 0)
+ if (!_usbConfiguration)
143
return -1;
144
145
LockEP lock(ep);
0 commit comments