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
@@ -109,11 +109,13 @@ void NTRIPClient::gpsConfiguration() {
}
bool NTRIPClient::setActivated(bool b) {
// std::cout << "NTRIPClient::setActivated: b - " << b << std::endl;
if (b && this->state != NTRIPClientStates::notAvailable)
this->activated = true;
else if (b)
return false;
this->activated = false;
else
this->activated = false;
return true;
}