Skip to content

Commit b1b77a6

Browse files
committed
WiFiClient::peek should return -1 instead of 0
Fixes: espressif#329
1 parent b879f80 commit b1b77a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiClient.h

+1-1
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)