From fcf7e11552f465658c392299aac1ddc4edf41154 Mon Sep 17 00:00:00 2001 From: Fabrice Weinberg <Fabrice@weinberg.me> Date: Sat, 27 Aug 2016 13:12:55 +0200 Subject: [PATCH] Fix bug in virtual functions definition to fix vtable lookup error. --- OLEDDisplay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OLEDDisplay.h b/OLEDDisplay.h index 5f35f6d..a6a25be 100644 --- a/OLEDDisplay.h +++ b/OLEDDisplay.h @@ -247,10 +247,10 @@ class OLEDDisplay : public Print { char *logBuffer = NULL; // Send a command to the display (low level function) - virtual void sendCommand(uint8_t com); + virtual void sendCommand(uint8_t com) {}; // Connect to the display - virtual bool connect(); + virtual bool connect() {}; // Send all the init commands void sendInitCommands(); -- GitLab