load correction data for compass from flash

This commit is contained in:
2023-05-24 11:42:03 +02:00
parent 1b25f59719
commit 75b461237e
3 changed files with 13 additions and 2 deletions
@@ -84,6 +84,11 @@ void MenuManualControl::printPage() const {
}
break;
case 8:
lineOne = "Save compass";
lineTwo = "data in flash";
break;
default:
this->printDefault();
return;
@@ -96,7 +101,7 @@ void MenuManualControl::init() {
this->firstPrint = false;
this->driveManager->changeModus(Modi::ManualControl);
this->manualControl = (ManualControl*) this->driveManager->getDriveModiPtr();
this->setCountPages(7);
this->setCountPages(9);
this->updateDelay = 500;
}
@@ -136,6 +141,9 @@ void MenuManualControl::runCommand() const {
break;
}
break;
case 8:
this->caliCompass->saveData();
default:
break;