WiFiClient::peek should return -1 instead of 0

Fixes: https://github.com/espressif/arduino-esp32/issues/329
This commit is contained in:
me-no-dev 2017-05-06 18:30:38 +03:00
parent b879f80017
commit b1b77a658f

View File

@ -49,7 +49,7 @@ public:
int read(uint8_t *buf, size_t size);
int peek()
{
return 0;
return -1;
}
void flush();
void stop();