mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 19:00:34 +08:00
uorb: add uorb_unadvertise method
This is necessary when using multiple instances of a topic. However it does not free the underlying resources, as it is assumed they will be used again at a later point.
This commit is contained in:
@@ -96,6 +96,7 @@ void PublicationBase::update(void *data)
|
||||
|
||||
PublicationBase::~PublicationBase()
|
||||
{
|
||||
orb_unadvertise(getHandle());
|
||||
}
|
||||
|
||||
PublicationNode::PublicationNode(const struct orb_metadata *meta,
|
||||
|
||||
Reference in New Issue
Block a user