mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 03:20:34 +08:00
POSIX: Critical fix for vdev_posix
Last fix for vdev_posix.cpp introduced a sleep from within a HRT work item callback which blocks the HRT queue. The code in uORBDevices_posix.cpp that handles message throttling was commented out for posix. The code was re-enabled and now seems to work. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -421,10 +421,6 @@ uORB::DeviceNode::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.
|
||||
@@ -445,7 +441,6 @@ uORB::DeviceNode::appears_updated(SubscriberData *sd)
|
||||
sd->update_interval,
|
||||
&uORB::DeviceNode::update_deferred_trampoline,
|
||||
(void *)this);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Remember that we have told the subscriber that there is data.
|
||||
|
||||
Reference in New Issue
Block a user