mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 20:03:34 +08:00
px4 nodehandle: nuttx: call spin once also after timeout
This commit is contained in:
@@ -228,12 +228,7 @@ public:
|
||||
struct pollfd pfd;
|
||||
pfd.fd = _sub_min_interval->getHandle();
|
||||
pfd.events = POLLIN;
|
||||
|
||||
if (poll(&pfd, 1, timeout_ms) <= 0) {
|
||||
/* timed out */
|
||||
continue;
|
||||
}
|
||||
|
||||
poll(&pfd, 1, timeout_ms);
|
||||
spinOnce();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user