From 0ab6c829d5426fc9ec46571588dacda0766a33e2 Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Wed, 26 Apr 2023 07:57:00 +0200 Subject: [PATCH] removed old update functions --- include/menuInformationSites.h | 5 ----- library.json | 2 +- src/menuInformationSites.cpp | 8 -------- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/include/menuInformationSites.h b/include/menuInformationSites.h index 5ea1462..c90fdef 100644 --- a/include/menuInformationSites.h +++ b/include/menuInformationSites.h @@ -61,11 +61,6 @@ class MenuInformationSites : public MenuControl { */ void printMenu() override; - /** - * @brief can be called to update shown data - */ - void update() override; - protected: bool setCountPages(uint8_t pages); uint8_t getCountPages() const; diff --git a/library.json b/library.json index 6e22d0a..8250ce5 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Menu", - "version": "1.1.0", + "version": "1.1.1", "description": "Build page based menus on uCs", "keywords": "menu, page, input", "repository": diff --git a/src/menuInformationSites.cpp b/src/menuInformationSites.cpp index fbafc0f..d1c8de4 100644 --- a/src/menuInformationSites.cpp +++ b/src/menuInformationSites.cpp @@ -64,14 +64,6 @@ void MenuInformationSites::printMenu() { this->lastPageNumber = this->currentPage; } -void MenuInformationSites::update() { - if (millis() - this->lastMillis < this->delay) { - return; - } - this->printMenu(); - this->lastMillis = millis(); -} - bool MenuInformationSites::setCountPages(uint8_t pages) { this->countPages = pages; this->currentPage = 0;