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

Sign up
Appearance settings

Commit 119ece2

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎cores/esp32/Stream.h‎

Lines 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+
virtualsize_t readBytes(char *buffer, size_t length); // read chars from stream into buffer
101+
virtualsize_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+
virtualString readString();
118118
String readStringUntil(char terminator);
119119

120120
protected:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /