mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-18 16:37:29 +01:00
timeout liar
This commit is contained in:
@@ -1662,10 +1662,16 @@ void TCPServer::getLidarPos() {
|
||||
|
||||
this->askLidarPosition();
|
||||
|
||||
int timeout = 0;
|
||||
|
||||
// ReSharper disable once CppDFAConstantConditions
|
||||
// ReSharper disable once CppDFAEndlessLoop
|
||||
while (awaitForLidar) {
|
||||
usleep(50'000);
|
||||
timeout++;
|
||||
if (timeout > 100) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// ReSharper disable once CppDFAUnreachableCode
|
||||
|
||||
Reference in New Issue
Block a user