fix some issues

This commit is contained in:
2022-12-20 23:55:55 +01:00
parent 16ac28e997
commit 6590f26e44
8 changed files with 29 additions and 18 deletions
+3 -1
View File
@@ -201,11 +201,13 @@ void MenuGPS::printPage() const {
void MenuGPS::runCommand() const {
switch (this->currentPage) {
case 3:
case 3: {
// std::cout << "MenuGPS::runCommand " << this->ntripClient->getClientState() << std::endl;
if (this->ntripClient->getClientState() == NTRIPClientStates::pushData)
this->ntripClient->setActivated(false);
else if (this->ntripClient->getClientState() != NTRIPClientStates::notAvailable)
this->ntripClient->setActivated(true);
break;
}
}
}