1
0
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:
Ivan Grokhotkov
2016-03-24 01:21:10 +03:00
parent 213914e1ce
commit 19e97bfe15
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}