Points are now saveable in captureRoute

This commit is contained in:
2022-02-03 20:37:26 +01:00
parent bc37abcb66
commit b4a5814ef1
2 changed files with 18 additions and 4 deletions
@@ -18,9 +18,10 @@ void CaptureRoute::loop() {
void CaptureRoute::runCaptureRoute() {
if (Ps3.data.button.triangle) {
this->navigation->addCurrentPosToRoute();
this->routeInfo.totalPoints++;
this->updateDisplay = true;
if (this->navigation->addCurrentPosToRoute()) {
this->routeInfo = navigation->getRouteInfo();
this->updateDisplay = true;
}
}
}