AP_Notify: add override to display methods

This commit is contained in:
Randy Mackay 2017-01-17 21:21:35 +09:00 committed by Lucas De Marchi
parent ed4115c4e3
commit 9eb6d18d8e
2 changed files with 10 additions and 10 deletions

View File

@ -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;

View File

@ -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;