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 <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-30 13:17:16 -07:00
parent 5557ecf3d7
commit 6acdc2ae3f
+4
View File
@@ -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.