timeout liar

This commit is contained in:
ackimixs
2024-05-09 14:20:02 +02:00
parent 6379466ec0
commit 704c530bed

View File

@@ -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