Skip to content

Commit 672d87f

Browse files
author
blue-2357
committed
WiFiClient::peek should return -1 instead of 0
Fixes: espressif/arduino-esp32#329
1 parent db0db23 commit 672d87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class WiFiClient : public Client
4949
int read(uint8_t *buf, size_t size);
5050
int peek()
5151
{
52-
return 0;
52+
return -1;
5353
}
5454
void flush();
5555
void stop();

0 commit comments

Comments
 (0)