Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 18b8171

Browse files
committedSep 14, 2020
Moved Stream.flush() to Print.flush()
Fix #1170 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 6f4ea3f commit 18b8171

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎cores/arduino/Print.h

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ class Print {
9999

100100
int printf(const char *format, ...);
101101
int printf(const __FlashStringHelper *format, ...);
102+
103+
virtual void flush() { /* Empty implementation for backward compatibility */ }
102104
};
103105

104106
#endif

‎cores/arduino/Stream.h

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Stream : public Print {
5858
virtual int available() = 0;
5959
virtual int read() = 0;
6060
virtual int peek() = 0;
61-
virtual void flush() = 0;
6261

6362
Stream()
6463
{

0 commit comments

Comments
 (0)
Please sign in to comment.