Skip to content

Commit ebb2ddf

Browse files
committed
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.
1 parent fcf7e11 commit ebb2ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OLEDDisplay.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class OLEDDisplay : public Print {
207207
void flipScreenVertically();
208208

209209
// Write the buffer to the display memory
210-
virtual void display(void);
210+
virtual void display(void) = 0;
211211

212212
// Clear the local pixel buffer
213213
void clear(void);

0 commit comments

Comments
 (0)