added setCountPages
This commit is contained in:
@@ -63,6 +63,14 @@ void MenuInformationSites::update() {
|
||||
this->lastMillis = millis();
|
||||
}
|
||||
|
||||
bool MenuInformationSites::setCountPages(uint8_t pages) {
|
||||
if (this->countPages < pages)
|
||||
this->countPages = pages;
|
||||
else
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
uint8_t MenuInformationSites::getCountPages() const {
|
||||
return this->countPages;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user