mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 23:01:39 +08:00
uORB::PublicationQueued don't unadvertise on destruction (#12674)
* this is a bit of a hack for vehicle_command and vehicle_command_ack usage
This commit is contained in:
@@ -59,7 +59,10 @@ public:
|
|||||||
* @param meta The uORB metadata (usually from the ORB_ID() macro) for the topic.
|
* @param meta The uORB metadata (usually from the ORB_ID() macro) for the topic.
|
||||||
*/
|
*/
|
||||||
PublicationQueued(const orb_metadata *meta) : _meta(meta) {}
|
PublicationQueued(const orb_metadata *meta) : _meta(meta) {}
|
||||||
~PublicationQueued() { orb_unadvertise(_handle); }
|
~PublicationQueued()
|
||||||
|
{
|
||||||
|
//orb_unadvertise(_handle);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Publish the struct
|
* Publish the struct
|
||||||
|
|||||||
Reference in New Issue
Block a user