temp
This commit is contained in:
parent
1f77f62c3a
commit
48c29855ca
@ -128,13 +128,13 @@ void MqttClient::checkTimeout(std::chrono::seconds timeout)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int MqttClient::getGear()
|
int MqttClient::getGear() const
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(dataMutex);
|
std::lock_guard<std::mutex> lock(dataMutex);
|
||||||
return gear;
|
return gear;
|
||||||
}
|
}
|
||||||
|
|
||||||
double MqttClient::getSpeed()
|
double MqttClient::getSpeed() const
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(dataMutex);
|
std::lock_guard<std::mutex> lock(dataMutex);
|
||||||
return speed;
|
return speed;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user