From ccef29a679668f780b13c355bd8683190b7d8b95 Mon Sep 17 00:00:00 2001 From: Batchyx Date: Wed, 20 Apr 2022 18:09:03 +0200 Subject: [PATCH] Fix compilation of Watchy_Tetris Inheriting the constructor is enough, no need to declare another constructor that does not compile. --- examples/WatchFaces/Tetris/Watchy_Tetris.cpp | 2 -- examples/WatchFaces/Tetris/Watchy_Tetris.h | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/WatchFaces/Tetris/Watchy_Tetris.cpp b/examples/WatchFaces/Tetris/Watchy_Tetris.cpp index 91feb75..7f0dd44 100644 --- a/examples/WatchFaces/Tetris/Watchy_Tetris.cpp +++ b/examples/WatchFaces/Tetris/Watchy_Tetris.cpp @@ -2,8 +2,6 @@ const unsigned char *tetris_nums [10] = {tetris0, tetris1, tetris2, tetris3, tetris4, tetris5, tetris6, tetris7, tetris8, tetris9}; -WatchyTetris::WatchyTetris(){} //constructor - void WatchyTetris::drawWatchFace(){ display.fillScreen(GxEPD_WHITE); display.drawBitmap(0, 0, tetrisbg, DISPLAY_WIDTH, DISPLAY_HEIGHT, GxEPD_BLACK); diff --git a/examples/WatchFaces/Tetris/Watchy_Tetris.h b/examples/WatchFaces/Tetris/Watchy_Tetris.h index ba05f83..94210e9 100644 --- a/examples/WatchFaces/Tetris/Watchy_Tetris.h +++ b/examples/WatchFaces/Tetris/Watchy_Tetris.h @@ -5,9 +5,8 @@ #include "tetris.h" class WatchyTetris : public Watchy{ - using Watchy::Watchy; public: - WatchyTetris(); + using Watchy::Watchy; void drawWatchFace(); };