ntrip client safe without wlan
This commit is contained in:
@@ -130,24 +130,24 @@ void MenuGPS::printPage() const {
|
||||
break;
|
||||
|
||||
case 3: {
|
||||
bool status;
|
||||
if (this->ntripClient->getClientState() == NTRIPClientStates::pushData)
|
||||
status = true;
|
||||
else
|
||||
status = false;
|
||||
NTRIPClientStates status = this->ntripClient->getClientState();
|
||||
|
||||
if (this->lcd) {
|
||||
lcd->clear();
|
||||
lcd->setCursor(0, 0);
|
||||
lcd->print("NTRIP Client");
|
||||
lcd->setCursor(0, 1);
|
||||
if (status)
|
||||
if (status == NTRIPClientStates::pushData)
|
||||
lcd->print("enabled");
|
||||
else if (status == NTRIPClientStates::notAvailable)
|
||||
lcd->print("not available");
|
||||
else
|
||||
lcd->print("disabled");
|
||||
}
|
||||
if (status)
|
||||
if (status == NTRIPClientStates::pushData)
|
||||
std::cout << "NTRIP Client is enabled." << std::endl;
|
||||
else if (status == NTRIPClientStates::notAvailable)
|
||||
std::cout << "NTRIP Client is not available." << std::endl;
|
||||
else
|
||||
std::cout << "NTRIP Client is disabled" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user