mirror of
https://github.com/espressif/arduino-esp32
synced 2024-09-21 10:28:04 +00:00
Fix missing virtual declarations in Stream.h (#10348)
* Fix missing virtual declarations in Stream.h Fixes some changes made in PR #10328 * Remove the virtual destructor as Print class has one As pointed out by @JAndrassy
This commit is contained in:
parent
2f89026540
commit
e989445b62
@ -105,8 +105,8 @@ public:
|
|||||||
float parseFloat(LookaheadMode lookahead = SKIP_ALL, char ignore = NO_IGNORE_CHAR);
|
float parseFloat(LookaheadMode lookahead = SKIP_ALL, char ignore = NO_IGNORE_CHAR);
|
||||||
// float version of parseInt
|
// float version of parseInt
|
||||||
|
|
||||||
size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer
|
virtual 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(uint8_t *buffer, size_t length) {
|
||||||
return readBytes((char *)buffer, length);
|
return readBytes((char *)buffer, length);
|
||||||
}
|
}
|
||||||
// terminates if length characters have been read or timeout (see setTimeout)
|
// terminates if length characters have been read or timeout (see setTimeout)
|
||||||
@ -120,7 +120,7 @@ public:
|
|||||||
// returns the number of characters placed in the buffer (0 means no valid data found)
|
// returns the number of characters placed in the buffer (0 means no valid data found)
|
||||||
|
|
||||||
// Arduino String functions to be added here
|
// Arduino String functions to be added here
|
||||||
String readString();
|
virtual String readString();
|
||||||
String readStringUntil(char terminator);
|
String readStringUntil(char terminator);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user