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;
|
||||
}
|
||||
|
||||
+7
-1
@@ -206,9 +206,10 @@ void callbackControllerConnect() {
|
||||
// because after the setup the other core control the display.
|
||||
if (firstConnect) {
|
||||
lcd->init();
|
||||
main_m->printMenu();
|
||||
firstConnect = false;
|
||||
}
|
||||
|
||||
main_m->printMenu();
|
||||
}
|
||||
|
||||
void callbackControllerDisconnect() {
|
||||
@@ -261,6 +262,11 @@ void makeMenu() {
|
||||
|
||||
auto disconnectController = [&]() {
|
||||
disconnectPs3 = true;
|
||||
lcd->clear();
|
||||
lcd->setCursor(0, 0);
|
||||
lcd->print("Controller is");
|
||||
lcd->setCursor(0, 1);
|
||||
lcd->print("disconnected.");
|
||||
};
|
||||
|
||||
// Create Menu
|
||||
|
||||
Reference in New Issue
Block a user