From 6acdc2ae3f9358d32e5056c2927777b1e4ae3073 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Thu, 30 Apr 2015 13:17:16 -0700 Subject: [PATCH] POSIX: workaround for poll notification Sensor combined topic notification wasnot working because the calls to hrt_called() and hrt_call_after() in ORBDevNode::appears_updated() are not working correctly. This commit ifdefs out those calls, and the poling seems to work correctly. This is a workaround until the issue is resolved. Signed-off-by: Mark Charlebois --- src/modules/uORB/MuORB.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/uORB/MuORB.cpp b/src/modules/uORB/MuORB.cpp index 5bf8e06a26..932af53c8f 100644 --- a/src/modules/uORB/MuORB.cpp +++ b/src/modules/uORB/MuORB.cpp @@ -514,6 +514,9 @@ ORBDevNode::appears_updated(SubscriberData *sd) break; } +// FIXME - the calls to hrt_called and hrt_call_after seem not to work in the +// POSIX build +#ifndef __PX4_POSIX /* * If the interval timer is still running, the topic should not * appear updated, even though at this point we know that it has. @@ -533,6 +536,7 @@ ORBDevNode::appears_updated(SubscriberData *sd) sd->update_interval, &ORBDevNode::update_deferred_trampoline, (void *)this); +#endif /* * Remember that we have told the subscriber that there is data.