integrated menuInformationsSites to

driveMenu items
This commit is contained in:
2023-05-11 08:39:06 +02:00
parent 8e5a47f65b
commit df6a4b5e92
8 changed files with 64 additions and 38 deletions
@@ -11,10 +11,7 @@
#include "menuAutopilot.h"
void MenuAutopilot::printMenu() {
if (this->firstPrint)
this->init();
void MenuAutopilot::printPage() const {
char buf1[17];
char buf2[17];
char unit[3];
@@ -72,7 +69,7 @@ void MenuAutopilot::update() {
}
void MenuAutopilot::init() {
this->firstPrint = false;
this->setCountPages(4);
this->driveManager->changeModus(Modi::Autopilot);
this->autopilot = (Autopilot*) this->driveManager->getDriveModiPtr();
this->routeInfo = this->autopilot->getRouteInfo();