bugfix when enter get right routeInfo

This commit is contained in:
2023-01-04 02:34:43 +01:00
parent 8687e5d0ce
commit 04109d82e6
2 changed files with 4 additions and 3 deletions
@@ -14,6 +14,8 @@ void MenuCaptureRoute::printMenu() {
if (this->firstPrint)
this->init();
this->routeInfo = this->captureRoute->getRouteInfo();
if (this->lcd) {
this->lcd->clear();
this->lcd->setCursor(0, 0);
@@ -28,7 +30,6 @@ void MenuCaptureRoute::printMenu() {
void MenuCaptureRoute::update() {
if (!this->captureRoute->shouldUpdate())
return;
this->routeInfo = this->captureRoute->getRouteInfo();
this->printMenu();
}
@@ -36,5 +37,5 @@ void MenuCaptureRoute::init() {
this->firstPrint = false;
this->driveManager->changeModus(Modi::CaptureRoute);
this->captureRoute = (CaptureRoute*) this->driveManager->getDriveModiPtr();
this->routeInfo = this->captureRoute->getRouteInfo();
}