From 9eb6d18d8ef0b6c7bfef1b1f8226e0d3c7e14e0a Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 17 Jan 2017 21:21:35 +0900 Subject: [PATCH] AP_Notify: add override to display methods --- libraries/AP_Notify/Display_SH1106_I2C.h | 10 +++++----- libraries/AP_Notify/Display_SSD1306_I2C.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libraries/AP_Notify/Display_SH1106_I2C.h b/libraries/AP_Notify/Display_SH1106_I2C.h index 16cbc9dddd..7f49cbcdc2 100644 --- a/libraries/AP_Notify/Display_SH1106_I2C.h +++ b/libraries/AP_Notify/Display_SH1106_I2C.h @@ -13,11 +13,11 @@ public: static bool hw_autodetect() { return true; } protected: - virtual bool hw_init(); - virtual bool hw_update(); - virtual bool set_pixel(uint16_t x, uint16_t y); - virtual bool clear_pixel(uint16_t x, uint16_t y); - virtual bool clear_screen(); + bool hw_init() override; + bool hw_update() override; + bool set_pixel(uint16_t x, uint16_t y) override; + bool clear_pixel(uint16_t x, uint16_t y) override; + bool clear_screen() override; void _update_timer() override; diff --git a/libraries/AP_Notify/Display_SSD1306_I2C.h b/libraries/AP_Notify/Display_SSD1306_I2C.h index 532796ff26..cc28976466 100644 --- a/libraries/AP_Notify/Display_SSD1306_I2C.h +++ b/libraries/AP_Notify/Display_SSD1306_I2C.h @@ -11,11 +11,11 @@ class Display_SSD1306_I2C: public Display_OLED_I2C { protected: - virtual bool hw_init(); - virtual bool hw_update(); - virtual bool set_pixel(uint16_t x, uint16_t y); - virtual bool clear_pixel(uint16_t x, uint16_t y); - virtual bool clear_screen(); + bool hw_init() override; + bool hw_update() override; + bool set_pixel(uint16_t x, uint16_t y) override; + bool clear_pixel(uint16_t x, uint16_t y) override; + bool clear_screen() override; void _update_timer() override;