From 787cd5e72b69599016d69c0017d271d354089d70 Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Wed, 14 Dec 2022 13:20:54 +0100 Subject: [PATCH] fix command run if ntrip not available --- src/SpecialMenus/GPS/menuGPS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpecialMenus/GPS/menuGPS.cpp b/src/SpecialMenus/GPS/menuGPS.cpp index ca728e0..7c26242 100644 --- a/src/SpecialMenus/GPS/menuGPS.cpp +++ b/src/SpecialMenus/GPS/menuGPS.cpp @@ -184,7 +184,7 @@ void MenuGPS::runCommand() const { case 3: if (this->ntripClient->getClientState() == NTRIPClientStates::pushData) this->ntripClient->setActivated(false); - else + else if (this->ntripClient->getClientState() != NTRIPClientStates::notAvailable) this->ntripClient->setActivated(true); break; }