mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Remove check that is always false
len is an unsigned variable, so it will never be less than 0. This helps towards #1792.
This commit is contained in:
parent
b196a4a9c5
commit
8e35973ff9
@ -139,7 +139,7 @@ uint32_t USBD_Available(uint32_t ep)
|
|||||||
// Return number of bytes read
|
// Return number of bytes read
|
||||||
uint32_t USBD_Recv(uint32_t ep, void* d, uint32_t len)
|
uint32_t USBD_Recv(uint32_t ep, void* d, uint32_t len)
|
||||||
{
|
{
|
||||||
if (!_usbConfiguration || len < 0)
|
if (!_usbConfiguration)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
LockEP lock(ep);
|
LockEP lock(ep);
|
||||||
|
Loading…
Reference in New Issue
Block a user