mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-10 04:22:05 +03:00
Fix WiFiUDP::peek return value when buffer is empty (#1796)
This commit is contained in:
@ -236,7 +236,7 @@ int WiFiUDP::read(unsigned char* buffer, size_t len)
|
||||
int WiFiUDP::peek()
|
||||
{
|
||||
if (!_ctx)
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
return _ctx->peek();
|
||||
}
|
||||
|
Reference in New Issue
Block a user