From 2f4cb6ca84d3c2fa5142fba303079030d22c67ae Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Sun, 28 Oct 2012 16:14:06 +0100 Subject: [PATCH] reverting my workaround in mavlink orb_listener so that the fix of Lorenz is active --- apps/mavlink/orb_listener.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/mavlink/orb_listener.c b/apps/mavlink/orb_listener.c index 1eb621d09b..08bf091cb0 100644 --- a/apps/mavlink/orb_listener.c +++ b/apps/mavlink/orb_listener.c @@ -549,8 +549,7 @@ uorb_receive_thread(void *arg) } else { for (unsigned i = 0; i < n_listeners; i++) { - bool updated = false; - if(OK == orb_check(*(listeners[i].subp), &updated) && updated) + if (fds[i].revents & POLLIN) listeners[i].callback(&listeners[i]); } }