From e84e9c153e6cfea92f8e6eca8c3003b0028e48e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Andr=C3=A1ssy?= Date: Mon, 17 Jan 2022 15:12:22 +0100 Subject: [PATCH] Print.flush() - Arduino API conformance (#6084) --- 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 4493d4f8..7aa1a2d0 100644 --- a/cores/esp32/Print.h +++ b/cores/esp32/Print.h @@ -108,6 +108,9 @@ public: 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 2debee7e..8df8226d 100644 --- a/cores/esp32/Stream.h +++ b/cores/esp32/Stream.h @@ -48,7 +48,6 @@ public: virtual int available() = 0; virtual int read() = 0; virtual int peek() = 0; - virtual void flush() = 0; Stream():_startMillis(0) {