diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-17 08:03:22 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-17 08:03:22 +0100 |
commit | be269520382adbd4bea59c439599897a53109ad7 (patch) | |
tree | a5f5b9c26d35b533e04842a523291381eb3f817b /src/platforms/px4_nodehandle.h | |
parent | 851415e48ea428f16a48ac558f6cb6b9aef0c171 (diff) | |
download | px4-firmware-be269520382adbd4bea59c439599897a53109ad7.tar.gz px4-firmware-be269520382adbd4bea59c439599897a53109ad7.tar.bz2 px4-firmware-be269520382adbd4bea59c439599897a53109ad7.zip |
px4 nodehandle: nuttx: call spin once also after timeout
Diffstat (limited to 'src/platforms/px4_nodehandle.h')
-rw-r--r-- | src/platforms/px4_nodehandle.h | 7 |
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(); } } |