aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/platforms/px4_nodehandle.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h
index 9bd792c69..8879148a3 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();
}
}