Skip to content

Commit e84e9c1

Browse files
authored
Print.flush() - Arduino API conformance (espressif#6084)
1 parent 1d3ff05 commit e84e9c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cores/esp32/Print.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ class Print
108108
size_t println(const Printable&);
109109
size_t println(struct tm * timeinfo, const char * format = NULL);
110110
size_t println(void);
111+
112+
virtual void flush() { /* Empty implementation for backward compatibility */ }
113+
111114
};
112115

113116
#endif

cores/esp32/Stream.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class Stream: public Print
4848
virtual int available() = 0;
4949
virtual int read() = 0;
5050
virtual int peek() = 0;
51-
virtual void flush() = 0;
5251

5352
Stream():_startMillis(0)
5453
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy