WiFiClient::peek should return -1 instead of 0
Fixes: https://github.com/espressif/arduino-esp32/issues/329
This commit is contained in:
parent
b879f80017
commit
b1b77a658f
@ -49,7 +49,7 @@ public:
|
|||||||
int read(uint8_t *buf, size_t size);
|
int read(uint8_t *buf, size_t size);
|
||||||
int peek()
|
int peek()
|
||||||
{
|
{
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
void flush();
|
void flush();
|
||||||
void stop();
|
void stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user