mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
mavsdk_tests: increase the poll time resolution
With only 10 steps for e.g. 60 seconds we are likely to miss updates.
This commit is contained in:
@@ -114,9 +114,9 @@ bool poll_condition_with_timeout(
|
||||
unsigned iteration = 0;
|
||||
|
||||
while (!fun()) {
|
||||
std::this_thread::sleep_for(duration_ms / 10);
|
||||
std::this_thread::sleep_for(duration_ms / 100);
|
||||
|
||||
if (iteration++ >= 10) {
|
||||
if (iteration++ >= 100) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user