From 119ece2b0f96ca7d5477d446a62f210128a4b19e Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" Date: Tue, 23 Apr 2019 16:56:49 +0200 Subject: [PATCH] Portability from ESP8266, virtual Stream member functions. (#2701) --- cores/esp32/Stream.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cores/esp32/Stream.h b/cores/esp32/Stream.h index 45e6e477..4ce31955 100644 --- a/cores/esp32/Stream.h +++ b/cores/esp32/Stream.h @@ -97,8 +97,8 @@ public: float parseFloat(); // float version of parseInt - size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer - size_t readBytes(uint8_t *buffer, size_t length) + virtual size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer + virtual size_t readBytes(uint8_t *buffer, size_t length) { return readBytes((char *) buffer, length); } @@ -114,7 +114,7 @@ public: // returns the number of characters placed in the buffer (0 means no valid data found) // Arduino String functions to be added here - String readString(); + virtual String readString(); String readStringUntil(char terminator); protected: