From ebb2ddf777b2e9ac4c31be14c768bf983ea1d5e9 Mon Sep 17 00:00:00 2001 From: Marius Bergmann <marius@yeai.de> Date: Mon, 2 Jan 2017 23:46:34 +0100 Subject: [PATCH] Make OLEDDisplay.display() an abstract function Without the `= 0` declaration, compiling with RTTI enabled fails. See http://stackoverflow.com/a/307427/1880101 for an explanation. --- OLEDDisplay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OLEDDisplay.h b/OLEDDisplay.h index a6a25be..81537a2 100644 --- a/OLEDDisplay.h +++ b/OLEDDisplay.h @@ -207,7 +207,7 @@ class OLEDDisplay : public Print { void flipScreenVertically(); // Write the buffer to the display memory - virtual void display(void); + virtual void display(void) = 0; // Clear the local pixel buffer void clear(void); -- GitLab