From b1b77a658f1f361928264ad43671cf76f45b0882 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sat, 6 May 2017 18:30:38 +0300 Subject: [PATCH] WiFiClient::peek should return -1 instead of 0 Fixes: https://github.com/espressif/arduino-esp32/issues/329 --- libraries/WiFi/src/WiFiClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFi/src/WiFiClient.h b/libraries/WiFi/src/WiFiClient.h index da8355fe..5b10db7d 100644 --- a/libraries/WiFi/src/WiFiClient.h +++ b/libraries/WiFi/src/WiFiClient.h @@ -49,7 +49,7 @@ public: int read(uint8_t *buf, size_t size); int peek() { - return 0; + return -1; } void flush(); void stop();