mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-05 06:46:31 +02:00
WiFiClient::peek should return -1 instead of 0
Fixes: https://github.com/espressif/arduino-esp32/issues/329
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user