Browse Source

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>
sbg
Mark Charlebois 10 years ago
parent
commit
6acdc2ae3f
  1. 4
      src/modules/uORB/MuORB.cpp

4
src/modules/uORB/MuORB.cpp

@ -514,6 +514,9 @@ ORBDevNode::appears_updated(SubscriberData *sd) @@ -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) @@ -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.

Loading…
Cancel
Save