mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03: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:
@ -139,7 +139,7 @@ uint32_t USBD_Available(uint32_t ep)
|
||||
// Return number of bytes read
|
||||
uint32_t USBD_Recv(uint32_t ep, void* d, uint32_t len)
|
||||
{
|
||||
if (!_usbConfiguration || len < 0)
|
||||
if (!_usbConfiguration)
|
||||
return -1;
|
||||
|
||||
LockEP lock(ep);
|
||||
|
Reference in New Issue
Block a user