px4 nodehandle: nuttx: call spin once also after timeout

This commit is contained in:
Thomas Gubler 2014-12-17 08:03:22 +01:00
parent 851415e48e
commit be26952038
1 changed files with 1 additions and 6 deletions

View File

@ -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();
}
}