fix bug in route add akku menu begin with akkuread
This commit is contained in:
@@ -50,13 +50,13 @@ void MenuAkku::printMenu() {
|
||||
else sprintf(buf, "UNDEF");
|
||||
|
||||
if (this->lcd) {
|
||||
|
||||
} else {
|
||||
lcd->clear();
|
||||
lcd->setCursor(0, 0);
|
||||
lcd->printf("Controller: %s", buf);
|
||||
lcd->setCursor(0, 1);
|
||||
lcd->printf("Main: %u%%", mainBattery);
|
||||
} else {
|
||||
std::cout << "Controller: " << buf << "Main: " << mainBattery << "%" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,4 +66,4 @@ void MenuAkku::update() {
|
||||
}
|
||||
this->printMenu();
|
||||
this->last_millis = millis();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,4 +36,4 @@ class MenuAkku : public MenuControl {
|
||||
|
||||
};
|
||||
|
||||
#endif // MENU_AKKU_H
|
||||
#endif // MENU_AKKU_H
|
||||
|
||||
@@ -129,4 +129,4 @@ void MenuGPS::printPage(uint8_t page) const {
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ void MenuAutopilot::printMenu() {
|
||||
|
||||
} else
|
||||
std::cout << buf1 << " " << buf2 << std::endl;
|
||||
|
||||
}
|
||||
|
||||
void MenuAutopilot::update() {
|
||||
@@ -91,4 +90,4 @@ void MenuAutopilot::init() {
|
||||
this->driveManager->changeModus(Modi::Autopilot);
|
||||
this->autopilot = (Autopilot*) this->driveManager->getDriveModiPtr();
|
||||
this->routeInfo = this->autopilot->getRouteInfo();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ class MenuAutopilot : public MenuDriveMode {
|
||||
RouteInfo routeInfo;
|
||||
|
||||
uint32_t last_millis = 0;
|
||||
uint16_t minDelay = 500;
|
||||
uint16_t minDelay = 1500;
|
||||
};
|
||||
|
||||
#endif // MENU_AUTOPILOT_DRIVE_H
|
||||
#endif // MENU_AUTOPILOT_DRIVE_H
|
||||
|
||||
Reference in New Issue
Block a user