From be13a4913364e772ccafb5047c7f7b57000e60cd Mon Sep 17 00:00:00 2001 From: Juraj Andrassy Date: Thu, 30 Dec 2021 11:00:48 +0100 Subject: [PATCH] Print.flush() - Arduino API conformance --- cores/esp32/Print.h | 3 +++ cores/esp32/Stream.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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) {