Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 119ece2

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

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎cores/esp32/Stream.h

Copy file name to clipboardExpand all lines: cores/esp32/Stream.h
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.