aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/Print.h2
-rw-r--r--cores/arduino/Stream.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h
index 4d8a2f5..2b5aafd 100644
--- a/cores/arduino/Print.h
+++ b/cores/arduino/Print.h
@@ -87,6 +87,8 @@ class Print
size_t println(double, int = 2);
size_t println(const Printable&);
size_t println(void);
+
+ virtual void flush() { /* Empty implementation for backward compatibility */ }
};
#endif
diff --git a/cores/arduino/Stream.h b/cores/arduino/Stream.h
index e4fd433..78a1c07 100644
--- a/cores/arduino/Stream.h
+++ b/cores/arduino/Stream.h
@@ -59,7 +59,6 @@ class Stream : public Print
virtual int available() = 0;
virtual int read() = 0;
virtual int peek() = 0;
- virtual void flush() = 0;
Stream() {_timeout=1000;}