aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_publisher.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-23 08:03:26 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-23 08:12:46 +0100
commit16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee (patch)
tree88b175f99a908194eca02079a8e55279e4904a4b /src/platforms/px4_publisher.h
parent59f05a7195ae4a2d57e276c31e12bcf6af477408 (diff)
downloadpx4-firmware-16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee.tar.gz
px4-firmware-16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee.tar.bz2
px4-firmware-16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee.zip
move uorb::publisherbase into constructor of publisher
Diffstat (limited to 'src/platforms/px4_publisher.h')
-rw-r--r--src/platforms/px4_publisher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h
index ea675e67b..a9e40e8d6 100644
--- a/src/platforms/px4_publisher.h
+++ b/src/platforms/px4_publisher.h
@@ -130,10 +130,10 @@ public:
/**
* Construct Publisher by providing orb meta data
*/
- PublisherUORB(uORB::PublicationBase * uorb_pub) :
+ PublisherUORB() :
Publisher<T>(),
PublisherNode(),
- _uorb_pub(uorb_pub)
+ _uorb_pub(new uORB::PublicationBase(T::handle()))
{}
~PublisherUORB() {};