Skip to content

Commit 119ece2

Browse files
dok-netme-no-dev
authored andcommitted
Portability from ESP8266, virtual Stream member functions. (espressif#2701)
1 parent 606446a commit 119ece2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cores/esp32/Stream.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class Stream: public Print
9797

9898
float parseFloat(); // float version of parseInt
9999

100-
size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer
101-
size_t readBytes(uint8_t *buffer, size_t length)
100+
virtual size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer
101+
virtual size_t readBytes(uint8_t *buffer, size_t length)
102102
{
103103
return readBytes((char *) buffer, length);
104104
}
@@ -114,7 +114,7 @@ class Stream: public Print
114114
// returns the number of characters placed in the buffer (0 means no valid data found)
115115

116116
// Arduino String functions to be added here
117-
String readString();
117+
virtual String readString();
118118
String readStringUntil(char terminator);
119119

120120
protected:

0 commit comments

Comments
 (0)