forked from Archive/PX4-Autopilot
px4 nodehandle: nuttx: call spin once also after timeout
This commit is contained in:
parent
851415e48e
commit
be26952038
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue