fix some issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -67,7 +67,7 @@ void makeMenu(void);
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
DebugTimes::setConsolOutput(true);
|
||||
// DebugTimes::setConsolOutput(true);
|
||||
DebugTimes setupTime;
|
||||
char wifiIndicator = 'X';
|
||||
|
||||
@@ -130,7 +130,7 @@ void loop() {
|
||||
DebugTimes wifiTime;
|
||||
Network::checkWiFi();
|
||||
Network::checkMQTT();
|
||||
wifiTime.stopConsol("WiFi-Time", 5);
|
||||
wifiTime.stopConsol("WiFi-Time", 10);
|
||||
}
|
||||
driveManager->loop();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user