diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h index 9bd792c697..8879148a39 100644 --- a/src/platforms/px4_nodehandle.h +++ b/src/platforms/px4_nodehandle.h @@ -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(); } }