menuinformation site - add second action

inherit lcd Wrapper
This commit is contained in:
2023-08-18 15:59:00 +02:00
parent 7de343d08a
commit 67315f18b3
4 changed files with 11 additions and 1 deletions
+7
View File
@@ -20,3 +20,10 @@ void MenuControl::print(String lineOne, String lineTwo) const {
lcd->print(lineTwo.c_str());
}
}
void MenuControl::setParentMenu(MenuControl* menu) {
this->parentMenu = menu;
DisplayWrapper* lcd = this->parentMenu->getLcd();
if (lcd)
this->lcd = lcd;
}