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:
Daniel Agar 2019-08-09 12:45:02 -04:00 committed by GitHub
parent b5a01532ae
commit 6413525645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -59,7 +59,10 @@ public:
* @param meta The uORB metadata (usually from the ORB_ID() macro) for the topic.
*/
PublicationQueued(const orb_metadata *meta) : _meta(meta) {}
~PublicationQueued() { orb_unadvertise(_handle); }
~PublicationQueued()
{
//orb_unadvertise(_handle);
}
/**
* Publish the struct