diff --git a/cores/esp32/Print.h b/cores/esp32/Print.h index 4493d4f819f..7aa1a2d00a2 100644 --- a/cores/esp32/Print.h +++ b/cores/esp32/Print.h @@ -108,6 +108,9 @@ class Print size_t println(const Printable&); size_t println(struct tm * timeinfo, const char * format = NULL); size_t println(void); + + virtual void flush() { /* Empty implementation for backward compatibility */ } + }; #endif diff --git a/cores/esp32/Stream.h b/cores/esp32/Stream.h index 2debee7e4f9..8df8226d730 100644 --- a/cores/esp32/Stream.h +++ b/cores/esp32/Stream.h @@ -48,7 +48,6 @@ class Stream: public Print virtual int available() = 0; virtual int read() = 0; virtual int peek() = 0; - virtual void flush() = 0; Stream():_startMillis(0) {